Struct fuel_crypto::Hasher
source · pub struct Hasher(_);
Expand description
Standard hasher
Implementations§
source§impl Hasher
impl Hasher
sourcepub const OUTPUT_LEN: usize = 32usize
pub const OUTPUT_LEN: usize = 32usize
Length of the output
sourcepub fn chain<B>(self, data: B) -> Selfwhere
B: AsRef<[u8]>,
pub fn chain<B>(self, data: B) -> Selfwhere B: AsRef<[u8]>,
Consume, append data and return the hasher
sourcepub fn extend_chain<B, I>(self, iter: I) -> Selfwhere
B: AsRef<[u8]>,
I: IntoIterator<Item = B>,
pub fn extend_chain<B, I>(self, iter: I) -> Selfwhere B: AsRef<[u8]>, I: IntoIterator<Item = B>,
Consume, append the items of the iterator and return the hasher
Trait Implementations§
source§impl<B> Extend<B> for Hasherwhere
B: AsRef<[u8]>,
impl<B> Extend<B> for Hasherwhere B: AsRef<[u8]>,
source§fn extend<T: IntoIterator<Item = B>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = B>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more