pub struct Hash32<'a>(pub &'a [u8; 32]);Expand description
A 32-byte hash (SHA-256d / double-SHA-256) stored as a zero-copy reference.
The inner reference borrows from the original parse buffer, so no heap allocation is required.
Tuple Fields§
§0: &'a [u8; 32]Implementations§
Trait Implementations§
impl<'a> Copy for Hash32<'a>
impl<'a> Eq for Hash32<'a>
impl<'a> StructuralPartialEq for Hash32<'a>
Auto Trait Implementations§
impl<'a> Freeze for Hash32<'a>
impl<'a> RefUnwindSafe for Hash32<'a>
impl<'a> Send for Hash32<'a>
impl<'a> Sync for Hash32<'a>
impl<'a> Unpin for Hash32<'a>
impl<'a> UnsafeUnpin for Hash32<'a>
impl<'a> UnwindSafe for Hash32<'a>
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