Trait Setoid

Source
pub trait Setoid {
    // Required method
    fn equals(&self, other: &Self) -> bool;
}

Required Methods§

Source

fn equals(&self, other: &Self) -> bool

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 Setoid for &str

Source§

fn equals(&self, other: &Self) -> bool

Source§

impl Setoid for Vec<i32>

Source§

fn equals(&self, other: &Self) -> bool

Implementors§