Struct blake2::VarBlake2b
source · [−]pub struct VarBlake2b { /* private fields */ }
Expand description
Blake2b instance with a variable output.
Implementations
sourceimpl VarBlake2b
impl VarBlake2b
Trait Implementations
sourceimpl BlockInput for VarBlake2b
impl BlockInput for VarBlake2b
sourceimpl Clone for VarBlake2b
impl Clone for VarBlake2b
sourcefn clone(&self) -> VarBlake2bⓘNotable traits for VarBlake2bimpl Write for VarBlake2b
fn clone(&self) -> VarBlake2bⓘNotable traits for VarBlake2bimpl Write for VarBlake2b
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for VarBlake2b
impl Debug for VarBlake2b
sourceimpl Default for VarBlake2b
impl Default for VarBlake2b
sourceimpl Reset for VarBlake2b
impl Reset for VarBlake2b
sourceimpl Update for VarBlake2b
impl Update for VarBlake2b
sourceimpl VariableOutputDirty for VarBlake2b
impl VariableOutputDirty for VarBlake2b
sourcefn new(output_size: usize) -> Result<Self, InvalidOutputSize>
fn new(output_size: usize) -> Result<Self, InvalidOutputSize>
Create new hasher instance with the given output size. Read more
sourcefn output_size(&self) -> usize
fn output_size(&self) -> usize
Get output size of the hasher instance provided to the new
method
sourceimpl Write for VarBlake2b
impl Write for VarBlake2b
sourcefn write(&mut self, buf: &[u8]) -> Result<usize>
fn write(&mut self, buf: &[u8]) -> Result<usize>
Write a buffer into this writer, returning how many bytes were written. Read more
sourcefn flush(&mut self) -> Result<()>
fn flush(&mut self) -> Result<()>
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
sourcefn is_write_vectored(&self) -> bool
fn is_write_vectored(&self) -> bool
can_vector
)Determines if this Write
r has an efficient write_vectored
implementation. Read more
1.0.0 · sourcefn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
Attempts to write an entire buffer into this writer. Read more
sourcefn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
write_all_vectored
)Attempts to write multiple buffers into this writer. Read more
Auto Trait Implementations
impl RefUnwindSafe for VarBlake2b
impl Send for VarBlake2b
impl Sync for VarBlake2b
impl Unpin for VarBlake2b
impl UnwindSafe for VarBlake2b
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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<D> VariableOutput for D where
D: VariableOutputDirty + Reset,
impl<D> VariableOutput for D where
D: VariableOutputDirty + Reset,
sourcepub fn new(output_size: usize) -> Result<D, InvalidOutputSize>
pub fn new(output_size: usize) -> Result<D, InvalidOutputSize>
Create new hasher instance with the given output size. Read more
sourcepub fn output_size(&self) -> usize
pub fn output_size(&self) -> usize
Get output size of the hasher instance provided to the new
method
sourcepub fn finalize_variable(self, f: impl FnOnce(&[u8]))
pub fn finalize_variable(self, f: impl FnOnce(&[u8]))
Retrieve result via closure and consume hasher. Read more
sourcepub fn finalize_variable_reset(&mut self, f: impl FnOnce(&[u8]))
pub fn finalize_variable_reset(&mut self, f: impl FnOnce(&[u8]))
Retrieve result via closure and reset the hasher state. Read more