pub enum DuplexSpongeMode {
Absorbing {
next_absorb_index: usize,
},
Squeezing {
next_squeeze_index: usize,
},
}
Expand description
The mode structure for duplex sponges.
Variants
Absorbing
Fields
next_absorb_index: usize
The next position of the state to be XOR-ed when absorbing.
The sponge is currently absorbing data.
Squeezing
Fields
next_squeeze_index: usize
The next position of the state to be outputted when squeezing.
The sponge is currently squeezing data out.
Trait Implementations
sourceimpl Clone for DuplexSpongeMode
impl Clone for DuplexSpongeMode
sourcefn clone(&self) -> DuplexSpongeMode
fn clone(&self) -> DuplexSpongeMode
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 moresourceimpl Debug for DuplexSpongeMode
impl Debug for DuplexSpongeMode
sourceimpl PartialEq<DuplexSpongeMode> for DuplexSpongeMode
impl PartialEq<DuplexSpongeMode> for DuplexSpongeMode
sourcefn eq(&self, other: &DuplexSpongeMode) -> bool
fn eq(&self, other: &DuplexSpongeMode) -> bool
impl Eq for DuplexSpongeMode
impl StructuralEq for DuplexSpongeMode
impl StructuralPartialEq for DuplexSpongeMode
Auto Trait Implementations
impl RefUnwindSafe for DuplexSpongeMode
impl Send for DuplexSpongeMode
impl Sync for DuplexSpongeMode
impl Unpin for DuplexSpongeMode
impl UnwindSafe for DuplexSpongeMode
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
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.