freezie 1.0.0

freezie is a small library that disables mutation for the contained type
Documentation
  • Coverage
  • 100%
    6 out of 6 items documented2 out of 6 items with examples
  • Size
  • Source code size: 7.16 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.6 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • bluecatengineering/freezie
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • leshow

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