Struct fuel_crypto::Hasher
source · [−]pub struct Hasher(_);
Expand description
Standard hasher
Implementations
sourceimpl Hasher
impl Hasher
sourcepub const OUTPUT_LEN: usize
pub const OUTPUT_LEN: usize
Length of the output
sourcepub fn chain<B>(self, data: B) -> Self where
B: AsRef<[u8]>,
pub fn chain<B>(self, data: B) -> Self where
B: AsRef<[u8]>,
Consume, append data and return the hasher
sourcepub fn extend_chain<B, I>(self, iter: I) -> Self where
B: AsRef<[u8]>,
I: IntoIterator<Item = B>,
pub fn extend_chain<B, I>(self, iter: I) -> Self where
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 Hasher where
B: AsRef<[u8]>,
impl<B> Extend<B> for Hasher where
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
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more