MemEq

Trait MemEq 

Source
pub trait MemEq<Rhs: ?Sized = Self> {
    // Required method
    fn mem_eq(&self, other: &Rhs) -> bool;

    // Provided method
    fn mem_neq(&self, other: &Rhs) -> bool { ... }
}
Expand description

Trait for equality comparisons performed over bytes directly.

Required Methods§

Source

fn mem_eq(&self, other: &Rhs) -> bool

Tests whether self and other are equal in memory.

Provided Methods§

Source

fn mem_neq(&self, other: &Rhs) -> bool

Tests whether self and other are not equal in memory.

Implementations on Foreign Types§

Source§

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

Available on non-crate feature specialization only.
Source§

fn mem_eq(&self, other: &[U]) -> bool

Implementors§

Source§

impl<T, U> MemEq<U> for T