Trait Thin

Source
pub trait Thin: Pointee<Metadata = ()> { }
Expand description

Trait indicating that a type has no metadata.

This usually means Self: Sized or Self is extern.

§Example


fn safe<T: Thin>() {
    assert_eq!(<&T>::SZ, usize::SZ)
}

Implementors§

Source§

impl<P: Pointee<Metadata = ()>> Thin for P