pub enum Call {
Absorb(usize),
Squeeze(usize),
}Expand description
Enum to encode the calls to Sponge::absorb and Sponge::squeeze that
make the IO-pattern.
An implementation must forbid any further usage of the sponge and any of
its internal data if this pattern is not followed. In particular, the output
from any previous calls to Sponge::squeeze must not be used.
Variants§
Absorb(usize)
Absorb the specified amount of elements into the state.
Squeeze(usize)
Squeeze the specified amount of elements from the state.
Implementations§
Trait Implementations§
impl Copy for Call
impl StructuralPartialEq for Call
Auto Trait Implementations§
impl Freeze for Call
impl RefUnwindSafe for Call
impl Send for Call
impl Sync for Call
impl Unpin for Call
impl UnwindSafe for Call
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more