#immutability #value #wrap #value-type #reference #mutable #give

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

#2261 in Data structures

Download history 83/week @ 2023-12-06 55/week @ 2023-12-13 80/week @ 2023-12-20 13/week @ 2024-01-03 116/week @ 2024-01-10 43/week @ 2024-01-17 33/week @ 2024-02-14 47/week @ 2024-02-21 21/week @ 2024-02-28

101 downloads per month

MIT license

3KB

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