Struct gix_hashtable::hash::Hasher
source · pub struct Hasher(/* private fields */);
Expand description
A Hasher for usage with HashMap
keys that are already robust hashes (like an ObjectId
).
The first 8
bytes of the hash are used as the HashMap
hash
Trait Implementations§
source§impl Hasher for Hasher
impl Hasher for Hasher
source§fn write_u128(&mut self, _i: u128)
fn write_u128(&mut self, _i: u128)
Writes a single
u128
into this hasher.source§fn write_usize(&mut self, _i: usize)
fn write_usize(&mut self, _i: usize)
Writes a single
usize
into this hasher.source§fn write_i128(&mut self, _i: i128)
fn write_i128(&mut self, _i: i128)
Writes a single
i128
into this hasher.source§fn write_isize(&mut self, _i: isize)
fn write_isize(&mut self, _i: isize)
Writes a single
isize
into this hasher.source§fn write_length_prefix(&mut self, len: usize)
fn write_length_prefix(&mut self, len: usize)
🔬This is a nightly-only experimental API. (
hasher_prefixfree_extras
)Writes a length prefix into this hasher, as part of being prefix-free. Read more
impl Copy for Hasher
Auto Trait Implementations§
impl Freeze for Hasher
impl RefUnwindSafe for Hasher
impl Send for Hasher
impl Sync for Hasher
impl Unpin for Hasher
impl UnwindSafe for Hasher
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