surrealpatch/core/src/dbs/fuzzy_eq.rs
Przemyslaw Hugh Kaznowski 0462d6a395
Add FuzzyEq trait ()
2024-04-18 12:38:37 +00:00

10 lines
374 B
Rust

/// FuzzyEq trait is used to compare objects while ignoring values that are non-deterministic.
/// Non detereministic values include:
/// - Timestamps
/// - UUIDs
#[doc(hidden)]
pub trait FuzzyEq<Rhs: ?Sized = Self> {
/// Use this when comparing objects that you do not want to compare properties that are
/// non-deterministic
fn fuzzy_eq(&self, other: &Rhs) -> bool;
}