pub struct Poseidon2ExternalLayerMonty31<MP: MontyParameters, const WIDTH: usize> { /* private fields */ }
Expand description
The external layers of the Poseidon2 permutation for Monty31 fields.
This is currently not optimized for the Neon architecture but this is on the TODO list.
Trait Implementations§
Source§impl<MP: Clone + MontyParameters, const WIDTH: usize> Clone for Poseidon2ExternalLayerMonty31<MP, WIDTH>
impl<MP: Clone + MontyParameters, const WIDTH: usize> Clone for Poseidon2ExternalLayerMonty31<MP, WIDTH>
Source§fn clone(&self) -> Poseidon2ExternalLayerMonty31<MP, WIDTH>
fn clone(&self) -> Poseidon2ExternalLayerMonty31<MP, WIDTH>
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<MP: Debug + MontyParameters, const WIDTH: usize> Debug for Poseidon2ExternalLayerMonty31<MP, WIDTH>
impl<MP: Debug + MontyParameters, const WIDTH: usize> Debug for Poseidon2ExternalLayerMonty31<MP, WIDTH>
Source§impl<FP, const WIDTH: usize, const D: u64> ExternalLayer<MontyField31<FP>, WIDTH, D> for Poseidon2ExternalLayerMonty31<FP, WIDTH>where
FP: FieldParameters,
impl<FP, const WIDTH: usize, const D: u64> ExternalLayer<MontyField31<FP>, WIDTH, D> for Poseidon2ExternalLayerMonty31<FP, WIDTH>where
FP: FieldParameters,
Source§fn permute_state_initial(&self, state: &mut [MontyField31<FP>; WIDTH])
fn permute_state_initial(&self, state: &mut [MontyField31<FP>; WIDTH])
Perform the initial external layers of the Poseidon2 permutation on the given state.
Source§fn permute_state_terminal(&self, state: &mut [MontyField31<FP>; WIDTH])
fn permute_state_terminal(&self, state: &mut [MontyField31<FP>; WIDTH])
Perform the terminal external layers of the Poseidon2 permutation on the given state.
Source§impl<FP, const D: u64, const WIDTH: usize> ExternalLayer<PackedMontyField31Neon<FP>, WIDTH, D> for Poseidon2ExternalLayerMonty31<FP, WIDTH>where
FP: FieldParameters,
impl<FP, const D: u64, const WIDTH: usize> ExternalLayer<PackedMontyField31Neon<FP>, WIDTH, D> for Poseidon2ExternalLayerMonty31<FP, WIDTH>where
FP: FieldParameters,
Source§fn permute_state_initial(&self, state: &mut [PackedMontyField31Neon<FP>; WIDTH])
fn permute_state_initial(&self, state: &mut [PackedMontyField31Neon<FP>; WIDTH])
Perform the initial external layers of the Poseidon2 permutation on the given state.
Source§fn permute_state_terminal(
&self,
state: &mut [PackedMontyField31Neon<FP>; WIDTH],
)
fn permute_state_terminal( &self, state: &mut [PackedMontyField31Neon<FP>; WIDTH], )
Perform the terminal external layers of the Poseidon2 permutation on the given state.
Source§impl<FP: FieldParameters, const WIDTH: usize> ExternalLayerConstructor<PackedMontyField31Neon<FP>, WIDTH> for Poseidon2ExternalLayerMonty31<FP, WIDTH>
impl<FP: FieldParameters, const WIDTH: usize> ExternalLayerConstructor<PackedMontyField31Neon<FP>, WIDTH> for Poseidon2ExternalLayerMonty31<FP, WIDTH>
Source§fn new_from_constants(
external_constants: ExternalLayerConstants<MontyField31<FP>, WIDTH>,
) -> Self
fn new_from_constants( external_constants: ExternalLayerConstants<MontyField31<FP>, WIDTH>, ) -> Self
A constructor which internally will convert the supplied
constants into the appropriate form for the implementation.
Auto Trait Implementations§
impl<MP, const WIDTH: usize> Freeze for Poseidon2ExternalLayerMonty31<MP, WIDTH>
impl<MP, const WIDTH: usize> RefUnwindSafe for Poseidon2ExternalLayerMonty31<MP, WIDTH>where
MP: RefUnwindSafe,
impl<MP, const WIDTH: usize> Send for Poseidon2ExternalLayerMonty31<MP, WIDTH>
impl<MP, const WIDTH: usize> Sync for Poseidon2ExternalLayerMonty31<MP, WIDTH>
impl<MP, const WIDTH: usize> Unpin for Poseidon2ExternalLayerMonty31<MP, WIDTH>where
MP: Unpin,
impl<MP, const WIDTH: usize> UnwindSafe for Poseidon2ExternalLayerMonty31<MP, WIDTH>where
MP: 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§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