pub enum DuplexSpongeMode {
Absorbing {
next_absorb_index: usize,
},
Squeezing {
next_squeeze_index: usize,
},
}
Expand description
The mode structure for duplex sponges.
Variants§
Absorbing
The sponge is currently absorbing data.
Squeezing
The sponge is currently squeezing data out.
Trait Implementations§
source§impl Clone for DuplexSpongeMode
impl Clone for DuplexSpongeMode
source§fn clone(&self) -> DuplexSpongeMode
fn clone(&self) -> DuplexSpongeMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DuplexSpongeMode
impl Debug for DuplexSpongeMode
source§impl PartialEq<DuplexSpongeMode> for DuplexSpongeMode
impl PartialEq<DuplexSpongeMode> for DuplexSpongeMode
source§fn eq(&self, other: &DuplexSpongeMode) -> bool
fn eq(&self, other: &DuplexSpongeMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
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
§impl<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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.