Trait Thin
Source pub unsafe trait Thin { }
Expand description
Trait indicating that a type has no metadata.
This usually means Self: Sized or Self is extern.
§Safety
Implementors must ensure this type has no metadata (<Self as Pointee>::Metadata = ()).
§Example
fn never_panics<T: Thin>() {
assert_eq!(<&T>::SZ, usize::SZ)
}