Struct libp2p::multiaddr::multihash::Sha3_256 [−][src]
Multihash hasher.
Trait Implementations
impl Debug for Sha3_256
[src]
impl Default for Sha3_256
[src]
impl StatefulHasher for Sha3_256
[src]
type Size = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>
The maximum Digest size for that hasher (it is stack allocated).
type Digest = Sha3Digest<<Sha3_256 as StatefulHasher>::Size>
The Digest type to distinguish the output of different Hasher
implementations.
pub fn update(&mut self, input: &[u8])
[src]
pub fn finalize(&self) -> <Sha3_256 as StatefulHasher>::Digest
[src]
pub fn reset(&mut self)
[src]
Auto Trait Implementations
impl RefUnwindSafe for Sha3_256
impl Send for Sha3_256
impl Sync for Sha3_256
impl Unpin for Sha3_256
impl UnwindSafe for Sha3_256
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Hasher for T where
T: StatefulHasher,
[src]
T: StatefulHasher,
type Size = <T as StatefulHasher>::Size
The maximum Digest size for that hasher (it is stack allocated).
type Digest = <T as StatefulHasher>::Digest
The Digest type to distinguish the output of different Hasher
implementations.
pub fn digest(input: &[u8]) -> <T as Hasher>::Digest
[src]
pub fn size() -> u8
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,