pub struct VariableLenPoseidon2Hash<F, S, const OUTPUT_SIZE: usize>where
F: PrimeField + Unit,
S: Sponge<U = F>,{ /* private fields */ }
Expand description
Sponge-based CRHF where the Sponge uses Poseidon2 permutation, with variable-length input
Trait Implementations§
Source§impl<F, S, const OUT: usize> CRHF for VariableLenPoseidon2Hash<F, S, OUT>where
F: PrimeField + Unit,
S: Sponge<U = F>,
impl<F, S, const OUT: usize> CRHF for VariableLenPoseidon2Hash<F, S, OUT>where
F: PrimeField + Unit,
S: Sponge<U = F>,
Source§impl<F, S, const OUTPUT_SIZE: usize> Clone for VariableLenPoseidon2Hash<F, S, OUTPUT_SIZE>
impl<F, S, const OUTPUT_SIZE: usize> Clone for VariableLenPoseidon2Hash<F, S, OUTPUT_SIZE>
Source§fn clone(&self) -> VariableLenPoseidon2Hash<F, S, OUTPUT_SIZE>
fn clone(&self) -> VariableLenPoseidon2Hash<F, S, OUTPUT_SIZE>
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 moreAuto Trait Implementations§
impl<F, S, const OUTPUT_SIZE: usize> Freeze for VariableLenPoseidon2Hash<F, S, OUTPUT_SIZE>
impl<F, S, const OUTPUT_SIZE: usize> RefUnwindSafe for VariableLenPoseidon2Hash<F, S, OUTPUT_SIZE>where
F: RefUnwindSafe,
S: RefUnwindSafe,
impl<F, S, const OUTPUT_SIZE: usize> Send for VariableLenPoseidon2Hash<F, S, OUTPUT_SIZE>where
S: Send,
impl<F, S, const OUTPUT_SIZE: usize> Sync for VariableLenPoseidon2Hash<F, S, OUTPUT_SIZE>where
S: Sync,
impl<F, S, const OUTPUT_SIZE: usize> Unpin for VariableLenPoseidon2Hash<F, S, OUTPUT_SIZE>
impl<F, S, const OUTPUT_SIZE: usize> UnwindSafe for VariableLenPoseidon2Hash<F, S, OUTPUT_SIZE>where
F: UnwindSafe,
S: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more