Trait Compare

Source
pub trait Compare {
    // Required method
    fn feq(&self, to: &Self) -> bool;
}
Expand description

Memory compare trait

Required Methods§

Source

fn feq(&self, to: &Self) -> bool

Compares an &[u8] to another one

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Compare for [u8]

Source§

fn feq(&self, to: &[u8]) -> bool

Implementors§