Trait SizeMeta
Source pub unsafe trait SizeMeta { }
Expand description
Trait indicating that a type has usize metadata.
§Safety
The implementor must ensure this type has usize metadata (<Self as Pointee>::Metadata = usize).
§Example
fn never_panics<T: SizeMeta>() {
assert_eq!(<&T>::SZ, usize::SZ * 2)
}