Expand description
Generates unique values of opaque types.
§Purpose
impl Unique types are guaranteed to be unique. They cannot be
copied or cloned and are suitable for use as brand types.
The toast-cell crate utilizes this
property.
§Similar crates
generativity provides a macro to
generate unique invariant lifetimes. It does not require dependent code to
reside within a closure.
§Minimum supported Rust version
The MSRV is currently 1.56.
This may change between minor releases.
§License
This crate is licensed under the Blue Oak Model License 1.0.0.
Structs§
- Initial
- The initial unique type.
Traits§
- Unique
- A unique type.