Struct fuel_crypto::Hasher
source · [−]pub struct Hasher(_);
Expand description
Standard hasher
Implementations
sourceimpl 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
sourceimpl<B> Extend<B> for Hasherwhere
B: AsRef<[u8]>,
impl<B> Extend<B> for Hasherwhere
B: AsRef<[u8]>,
sourcefn 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
sourcefn 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.
sourcefn 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
sourceimpl<B> FromIterator<B> for Hasherwhere
B: AsRef<[u8]>,
impl<B> FromIterator<B> for Hasherwhere
B: AsRef<[u8]>,
sourcefn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = B>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = B>,
Creates a value from an iterator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Hasher
impl Send for Hasher
impl Sync for Hasher
impl Unpin for Hasher
impl UnwindSafe for Hasher
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more