Trait UnsignedBytewiseOrd
pub(in ::slice::cmp) unsafe trait UnsignedBytewiseOrd: ~const Ord
Marks that a type should be treated as an unsigned byte for comparisons.
Safety
- The type must be readable as an
u8, meaning it has to have the same layout asu8and always be initialized. - For every
xandyof this type,Ord(x, y)must return the same value asOrd::cmp(transmute::<_, u8>(x), transmute::<_, u8>(y)).
Implementors
impl UnsignedBytewiseOrd for Charimpl UnsignedBytewiseOrd for NonZero<u8>impl UnsignedBytewiseOrd for Option<NonZero<u8>>impl UnsignedBytewiseOrd for boolimpl UnsignedBytewiseOrd for u8