MemOrd

Trait MemOrd 

Source
pub trait MemOrd<Rhs: ?Sized = Self>: MemEq<Rhs> {
    // Required method
    fn mem_cmp(&self, other: &Rhs) -> Ordering;
}
Expand description

Trait for values whose bytes can be compared directly.

Required Methods§

Source

fn mem_cmp(&self, other: &Rhs) -> Ordering

Returns an ordering between the memory of self and other.

Implementations on Foreign Types§

Source§

impl<T, U> MemOrd<[U]> for [T]

Available on non-crate feature specialization only.
Source§

fn mem_cmp(&self, other: &[U]) -> Ordering

Implementors§

Source§

impl<T, U> MemOrd<U> for T