pub struct DistinctTracker { /* private fields */ }Expand description
Helper struct for tracking distinct values
Uses AHashSet
Implementations§
Source§impl DistinctTracker
impl DistinctTracker
Sourcepub fn check_and_add(&mut self, value: &Value) -> bool
pub fn check_and_add(&mut self, value: &Value) -> bool
Check if a value has been seen before (returns true if new) Note: Caller must ensure value is not NULL before calling
Sourcepub fn check_and_add_with_null_check(&mut self, value: &Value) -> bool
pub fn check_and_add_with_null_check(&mut self, value: &Value) -> bool
Check if a value has been seen before, with null handling (returns true if new)
Trait Implementations§
Source§impl Debug for DistinctTracker
impl Debug for DistinctTracker
Source§impl Default for DistinctTracker
impl Default for DistinctTracker
Source§fn default() -> DistinctTracker
fn default() -> DistinctTracker
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DistinctTracker
impl RefUnwindSafe for DistinctTracker
impl Send for DistinctTracker
impl Sync for DistinctTracker
impl Unpin for DistinctTracker
impl UnwindSafe for DistinctTracker
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more