freezie

Crates.iofreezie
lib.rsfreezie
version1.0.0
sourcesrc
created_at2023-02-24 18:59:15.531003
updated_at2023-02-24 18:59:15.531003
descriptionfreezie is a small library that disables mutation for the contained type
homepage
repositoryhttps://github.com/bluecatengineering/freezie
max_upload_size
id793850
size7,500
Evan Cameron (leshow)

documentation

https://docs.rs/freezie

README

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 ...
Commit count: 3

cargo fmt