Trait FuzzyEq

Source
pub trait FuzzyEq<Rhs: ?Sized = Self> {
    // Required method
    fn fuzzy_eq(&self, other: &Rhs) -> bool;
}
Expand description

FuzzyEq trait is used to compare objects while ignoring values that are non-deterministic. Non detereministic values include:

  • Timestamps
  • UUIDs

Required Methods§

Source

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

Use this when comparing objects that you do not want to compare properties that are non-deterministic

Implementors§