Crates.io | final |
lib.rs | final |
version | 0.1.1 |
source | src |
created_at | 2017-03-12 16:33:05.211465 |
updated_at | 2022-02-28 16:22:09.799449 |
description | Wrap a value in a type that does not give out mutable references. |
homepage | |
repository | https://github.com/jswrenn/final |
max_upload_size | |
id | 8943 |
size | 2,250 |
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.