pub struct Hash(/* private fields */);Expand description
A stack-allocated bytes buffer.
Use Self::as_ref to get the bytes as a &[u8] and Self::as_mut to get the bytes as a &mut [u8].
Comparing Hash is a constant-time operation.
Implementations§
Trait Implementations§
impl Eq for Hash
Auto Trait Implementations§
impl Freeze for Hash
impl RefUnwindSafe for Hash
impl Send for Hash
impl Sync for Hash
impl Unpin for Hash
impl UnsafeUnpin for Hash
impl UnwindSafe for Hash
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