pub struct AnemoiState<F: Field, const R: usize, const N: usize>(/* private fields */);
Trait Implementations§
Source§impl<F: Clone + Field, const R: usize, const N: usize> Clone for AnemoiState<F, R, N>
impl<F: Clone + Field, const R: usize, const N: usize> Clone for AnemoiState<F, R, N>
Source§fn clone(&self) -> AnemoiState<F, R, N>
fn clone(&self) -> AnemoiState<F, R, N>
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 Permutation for AnemoiState<Felt, { _AnemoiBls12_381_2_1::RATE }, { _AnemoiBls12_381_2_1::WIDTH }>
impl Permutation for AnemoiState<Felt, { _AnemoiBls12_381_2_1::RATE }, { _AnemoiBls12_381_2_1::WIDTH }>
Source§const N: usize = 2usize
const N: usize = 2usize
The width of the sponge, equal to rate
Permutation::R
plus capacity.
Cannot be less than 1. Cannot be less than Permutation::R
.Auto Trait Implementations§
impl<F, const R: usize, const N: usize> Freeze for AnemoiState<F, R, N>where
F: Freeze,
impl<F, const R: usize, const N: usize> RefUnwindSafe for AnemoiState<F, R, N>where
F: RefUnwindSafe,
impl<F, const R: usize, const N: usize> Send for AnemoiState<F, R, N>
impl<F, const R: usize, const N: usize> Sync for AnemoiState<F, R, N>
impl<F, const R: usize, const N: usize> Unpin for AnemoiState<F, R, N>where
F: Unpin,
impl<F, const R: usize, const N: usize> UnwindSafe for AnemoiState<F, R, N>where
F: 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