pub(crate) struct ShortHash<Sz>(pub(crate) usize, pub(crate) PhantomData<Sz>);
Expand description
A possibly truncated hash value.
Tuple Fields§
§0: usize
§1: PhantomData<Sz>
Implementations§
Trait Implementations§
source§impl<Sz> PartialEq<HashValue> for ShortHash<Sz>where
Sz: Size,
impl<Sz> PartialEq<HashValue> for ShortHash<Sz>where
Sz: Size,
impl<Sz> Copy for ShortHash<Sz>
Auto Trait Implementations§
impl<Sz> Freeze for ShortHash<Sz>
impl<Sz> RefUnwindSafe for ShortHash<Sz>where
Sz: RefUnwindSafe,
impl<Sz> Send for ShortHash<Sz>where
Sz: Send,
impl<Sz> Sync for ShortHash<Sz>where
Sz: Sync,
impl<Sz> Unpin for ShortHash<Sz>where
Sz: Unpin,
impl<Sz> UnwindSafe for ShortHash<Sz>where
Sz: UnwindSafe,
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