1 stable release
1.0.0 | Feb 24, 2023 |
---|
#2017 in Data structures
202 downloads per month
5KB
51 lines
Freezie
A wrapper type with no DerefMut
impl, disallowing mutation
use freezie::Freeze;
let mut v = Freeze::new(vec![1, 2, 3]);
v.push(1); // ERROR - cannot borrow data in dereference of ...
lib.rs
:
freezie
A wrapper type with no DerefMut
impl, disallowing mutation
use domain_list::freeze::Freeze;
let mut v = Freeze::new(vec![1, 2, 3]);
v.push(1); // ERROR - cannot borrow data in dereference of ...