pub struct Poseidon2InternalLayerGoldilocks { /* private fields */ }
Expand description
The internal layers of the Poseidon2 permutation.
Trait Implementations§
Source§impl Clone for Poseidon2InternalLayerGoldilocks
impl Clone for Poseidon2InternalLayerGoldilocks
Source§fn clone(&self) -> Poseidon2InternalLayerGoldilocks
fn clone(&self) -> Poseidon2InternalLayerGoldilocks
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 Default for Poseidon2InternalLayerGoldilocks
impl Default for Poseidon2InternalLayerGoldilocks
Source§fn default() -> Poseidon2InternalLayerGoldilocks
fn default() -> Poseidon2InternalLayerGoldilocks
Returns the “default value” for a type. Read more
Source§impl<AF: AbstractField<F = Goldilocks>> InternalLayer<AF, 12, GOLDILOCKS_S_BOX_DEGREE> for Poseidon2InternalLayerGoldilocks
impl<AF: AbstractField<F = Goldilocks>> InternalLayer<AF, 12, GOLDILOCKS_S_BOX_DEGREE> for Poseidon2InternalLayerGoldilocks
Source§fn permute_state(&self, state: &mut [AF; 12])
fn permute_state(&self, state: &mut [AF; 12])
Perform the internal layers of the Poseidon2 permutation on the given state.
Source§impl<AF: AbstractField<F = Goldilocks>> InternalLayer<AF, 16, GOLDILOCKS_S_BOX_DEGREE> for Poseidon2InternalLayerGoldilocks
impl<AF: AbstractField<F = Goldilocks>> InternalLayer<AF, 16, GOLDILOCKS_S_BOX_DEGREE> for Poseidon2InternalLayerGoldilocks
Source§fn permute_state(&self, state: &mut [AF; 16])
fn permute_state(&self, state: &mut [AF; 16])
Perform the internal layers of the Poseidon2 permutation on the given state.
Source§impl<AF: AbstractField<F = Goldilocks>> InternalLayer<AF, 20, GOLDILOCKS_S_BOX_DEGREE> for Poseidon2InternalLayerGoldilocks
impl<AF: AbstractField<F = Goldilocks>> InternalLayer<AF, 20, GOLDILOCKS_S_BOX_DEGREE> for Poseidon2InternalLayerGoldilocks
Source§fn permute_state(&self, state: &mut [AF; 20])
fn permute_state(&self, state: &mut [AF; 20])
Perform the internal layers of the Poseidon2 permutation on the given state.
Source§impl<AF: AbstractField<F = Goldilocks>> InternalLayer<AF, 8, GOLDILOCKS_S_BOX_DEGREE> for Poseidon2InternalLayerGoldilocks
impl<AF: AbstractField<F = Goldilocks>> InternalLayer<AF, 8, GOLDILOCKS_S_BOX_DEGREE> for Poseidon2InternalLayerGoldilocks
Source§fn permute_state(&self, state: &mut [AF; 8])
fn permute_state(&self, state: &mut [AF; 8])
Perform the internal layers of the Poseidon2 permutation on the given state.
Source§impl<AF: AbstractField<F = Goldilocks>> InternalLayerConstructor<AF> for Poseidon2InternalLayerGoldilocks
impl<AF: AbstractField<F = Goldilocks>> InternalLayerConstructor<AF> for Poseidon2InternalLayerGoldilocks
Source§fn new_from_constants(internal_constants: Vec<Goldilocks>) -> Self
fn new_from_constants(internal_constants: Vec<Goldilocks>) -> Self
A constructor which internally will convert the supplied
constants into the appropriate form for the implementation.
Auto Trait Implementations§
impl Freeze for Poseidon2InternalLayerGoldilocks
impl RefUnwindSafe for Poseidon2InternalLayerGoldilocks
impl Send for Poseidon2InternalLayerGoldilocks
impl Sync for Poseidon2InternalLayerGoldilocks
impl Unpin for Poseidon2InternalLayerGoldilocks
impl UnwindSafe for Poseidon2InternalLayerGoldilocks
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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