Struct blake2::VarBlake2s
source · [−]pub struct VarBlake2s { /* private fields */ }
Expand description
Blake2s instance with a variable output.
Implementations
sourceimpl VarBlake2s
impl VarBlake2s
Trait Implementations
sourceimpl BlockInput for VarBlake2s
impl BlockInput for VarBlake2s
sourceimpl Clone for VarBlake2s
impl Clone for VarBlake2s
sourcefn clone(&self) -> VarBlake2sⓘNotable traits for VarBlake2simpl Write for VarBlake2s
fn clone(&self) -> VarBlake2sⓘNotable traits for VarBlake2simpl Write for VarBlake2s
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 VarBlake2s
impl Debug for VarBlake2s
sourceimpl Default for VarBlake2s
impl Default for VarBlake2s
sourceimpl Reset for VarBlake2s
impl Reset for VarBlake2s
sourceimpl Update for VarBlake2s
impl Update for VarBlake2s
sourceimpl VariableOutputDirty for VarBlake2s
impl VariableOutputDirty for VarBlake2s
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 VarBlake2s
impl Write for VarBlake2s
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 VarBlake2s
impl Send for VarBlake2s
impl Sync for VarBlake2s
impl Unpin for VarBlake2s
impl UnwindSafe for VarBlake2s
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