pub struct ShortHash(pub(crate) u64);Expand description
Create a hash for this object that is no longer than six hex digits
The intent for this is to be used as a pre- or postfix to make a non-unique
name for the object T unique. The fmt::Display implementation should be
used for canonical formatting.
Tuple Fields§
§0: u64Implementations§
Trait Implementations§
impl Copy for ShortHash
Auto Trait Implementations§
impl Freeze for ShortHash
impl RefUnwindSafe for ShortHash
impl Send for ShortHash
impl Sync for ShortHash
impl Unpin for ShortHash
impl UnwindSafe for ShortHash
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<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