Expand description
This crate provides a container for a value, DirtyStatic, which
allows mutation in debug mode (via UnsafeCell), but not in
release mode.
This allows you to tweak data while testing an application, without having that data be mutable when the application is released.
There are also two features available:
force-dynamicwhich allows replacing the value of aDirtyStaticeven in release mode.force-staticwhich disallows replacing the value of aDirtyStaticeven in debug mode.
Structsยง
- Dirty
Static - A container for a value which allows interior mutation
only in debug mode. (Or when enabled via
force-dynamicfeature.)