pub struct Hash128 {
pub(crate) inner: u128,
}
Expand description
A u128
but encoded with a fixed size; for hashes this encoding is more compact than u128
.
Fields§
§inner: u128
Implementations§
Trait Implementations§
Source§impl FromStableHash for Hash128
impl FromStableHash for Hash128
type Hash = SipHasher128Hash
Source§impl Ord for Hash128
impl Ord for Hash128
Source§impl PartialOrd for Hash128
impl PartialOrd for Hash128
impl Copy for Hash128
impl Eq for Hash128
impl StructuralPartialEq for Hash128
Auto Trait Implementations§
impl Freeze for Hash128
impl RefUnwindSafe for Hash128
impl Send for Hash128
impl Sync for Hash128
impl Unpin for Hash128
impl UnwindSafe for Hash128
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,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes