struct Identifier<'n, N: NormalizeEq> {
hash: u64,
node: &'n N,
}Expand description
Identifier that represents a TreeNode tree.
This identifier is designed to be efficient and “hash”, “accumulate”, “equal” and “have no collision (as low as possible)”
Fields§
§hash: u64§node: &'n NImplementations§
Source§impl<'n, N> Identifier<'n, N>where
N: HashNode + NormalizeEq,
impl<'n, N> Identifier<'n, N>where
N: HashNode + NormalizeEq,
Trait Implementations§
Source§impl<N: NormalizeEq> Clone for Identifier<'_, N>
impl<N: NormalizeEq> Clone for Identifier<'_, N>
Source§impl<'n, N: Debug + NormalizeEq> Debug for Identifier<'n, N>
impl<'n, N: Debug + NormalizeEq> Debug for Identifier<'n, N>
Source§impl<N: NormalizeEq> Hash for Identifier<'_, N>
impl<N: NormalizeEq> Hash for Identifier<'_, N>
Source§impl<N: NormalizeEq> PartialEq for Identifier<'_, N>
impl<N: NormalizeEq> PartialEq for Identifier<'_, N>
impl<N: NormalizeEq> Copy for Identifier<'_, N>
impl<'n, N: Eq + NormalizeEq> Eq for Identifier<'n, N>
Auto Trait Implementations§
impl<'n, N> Freeze for Identifier<'n, N>
impl<'n, N> RefUnwindSafe for Identifier<'n, N>where
N: RefUnwindSafe,
impl<'n, N> Send for Identifier<'n, N>where
N: Sync,
impl<'n, N> Sync for Identifier<'n, N>where
N: Sync,
impl<'n, N> Unpin for Identifier<'n, N>
impl<'n, N> UnwindSafe for Identifier<'n, N>where
N: RefUnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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