pub unsafe trait NonZero {
type Next;
const VALUE: usize;
}Expand description
§Safety
VALUE must be non-zero, and Self::Next::VALUE must be VALUE - 1 if Self::Next is NonZero.
Required Associated Constants§
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.