pub struct AnyHash(/* private fields */);Trait Implementations§
Source§impl HashBackend for AnyHash
impl HashBackend for AnyHash
type Hash = [u8; 64]
fn initialize(&mut self, hash_protocol: &str) -> Result<(), CryptoError>
fn block_size(&self) -> usize
fn zeros(&self) -> Self::Hash
fn hash_into<'a>( &self, hash: &mut Self::Hash, mix_hash: bool, inputs: impl IntoIterator<Item = &'a [u8]>, )
fn hash_as_slice<'a>(&self, hash: &'a Self::Hash) -> &'a [u8] ⓘ
fn hash_as_mut_slice<'a>(&self, hash: &'a mut Self::Hash) -> &'a mut [u8] ⓘ
Auto Trait Implementations§
impl Freeze for AnyHash
impl RefUnwindSafe for AnyHash
impl Send for AnyHash
impl Sync for AnyHash
impl Unpin for AnyHash
impl UnwindSafe for AnyHash
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