Skip to content

freezie is a small library that disables mutation for the contained type

License

Notifications You must be signed in to change notification settings

bluecatengineering/freezie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ...

About

freezie is a small library that disables mutation for the contained type

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages