#immutability #value #wrap #reference #give #mutable #guarantees

no-std final

Wrap a value in a type that does not give out mutable references

2 releases

Uses old Rust 2015

0.1.1 Feb 28, 2022
0.1.0 Mar 12, 2017

#1957 in Data structures

37 downloads per month

MIT license


This no-std crate provides the Final, struct which guarantees the interior immutability of the value that it wraps. This is useful for preserving invariants on the fields of structures, whose 'safe' mutation would cause undefined behavior.

No runtime deps