pub struct NodeHash(/* private fields */);Expand description
Hash value computed by rapidhash for structural deduplication.
Two nodes with the same NodeHash are structurally identical
(modulo hash collisions, which are verified by full structural comparison).
Implementations§
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for NodeHash
impl<'__de, __Context> BorrowDecode<'__de, __Context> for NodeHash
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given [
BorrowDecode]. Read moreimpl Copy for NodeHash
impl Eq for NodeHash
impl StructuralPartialEq for NodeHash
Auto Trait Implementations§
impl Freeze for NodeHash
impl RefUnwindSafe for NodeHash
impl Send for NodeHash
impl Sync for NodeHash
impl Unpin for NodeHash
impl UnsafeUnpin for NodeHash
impl UnwindSafe for NodeHash
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.