pub struct StableHasher(/* private fields */);Implementations§
Source§impl StableHasher
impl StableHasher
pub fn new() -> StableHasher
pub fn write_bytes(self, bytes: &[u8]) -> StableHasher
pub fn write_u64(self, value: u64) -> StableHasher
pub fn finish(self) -> u64
Trait Implementations§
Source§impl Clone for StableHasher
impl Clone for StableHasher
impl Copy for StableHasher
Source§impl Debug for StableHasher
impl Debug for StableHasher
Source§impl Default for StableHasher
impl Default for StableHasher
Source§fn default() -> StableHasher
fn default() -> StableHasher
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Forget for StableHasher
impl Freeze for StableHasher
impl Move for StableHasher
impl RefUnwindSafe for StableHasher
impl Send for StableHasher
impl Sync for StableHasher
impl Unpin for StableHasher
impl UnsafeUnpin for StableHasher
impl UnwindSafe for StableHasher
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