Trait EqUtils

Source
pub trait EqUtils<T: PartialEq> {
    // Required methods
    fn eq_to(&self, other: &T) -> bool;
    fn not_eq_to(&self, other: &T) -> bool;
}
Expand description

Provides sugar methods for comparing values.

Required Methods§

Source

fn eq_to(&self, other: &T) -> bool

Returns true if self == other.

Source

fn not_eq_to(&self, other: &T) -> bool

Returns true if self != other.

Implementors§

Source§

impl<T: PartialEq> EqUtils<T> for T