pub unsafe trait AlwaysValid { }Expand description
Types for which all possible bit patterns represent a valid value.
Note that MaybeUninit<T> and [T; 0] both implement this marker trait
even when T does not.
This trait is safely derivable with #[derive(AlwaysValid)] when the
derive feature is enabled.
§Safety
It is undefined behaviour to implement this trait for any type for which it exists a bit pattern that doesn’t represent a valid value.