surrealpatch/core/src/dbs/fuzzy_eq.rs

11 lines
374 B
Rust
Raw Normal View History

2024-04-18 12:38:37 +00:00
/// 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;
}