pub struct Poseidon2InternalLayerMonty31<MP: MontyParameters, const WIDTH: usize, ILP: InternalLayerBaseParameters<MP, WIDTH>> { /* private fields */ }
Expand description
The internal 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, ILP: Clone + InternalLayerBaseParameters<MP, WIDTH>> Clone for Poseidon2InternalLayerMonty31<MP, WIDTH, ILP>
impl<MP: Clone + MontyParameters, const WIDTH: usize, ILP: Clone + InternalLayerBaseParameters<MP, WIDTH>> Clone for Poseidon2InternalLayerMonty31<MP, WIDTH, ILP>
Source§fn clone(&self) -> Poseidon2InternalLayerMonty31<MP, WIDTH, ILP>
fn clone(&self) -> Poseidon2InternalLayerMonty31<MP, WIDTH, ILP>
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, ILP: Debug + InternalLayerBaseParameters<MP, WIDTH>> Debug for Poseidon2InternalLayerMonty31<MP, WIDTH, ILP>
impl<MP: Debug + MontyParameters, const WIDTH: usize, ILP: Debug + InternalLayerBaseParameters<MP, WIDTH>> Debug for Poseidon2InternalLayerMonty31<MP, WIDTH, ILP>
Source§impl<FP, const WIDTH: usize, P2P, const D: u64> InternalLayer<MontyField31<FP>, WIDTH, D> for Poseidon2InternalLayerMonty31<FP, WIDTH, P2P>where
FP: FieldParameters,
P2P: InternalLayerParameters<FP, WIDTH>,
impl<FP, const WIDTH: usize, P2P, const D: u64> InternalLayer<MontyField31<FP>, WIDTH, D> for Poseidon2InternalLayerMonty31<FP, WIDTH, P2P>where
FP: FieldParameters,
P2P: InternalLayerParameters<FP, WIDTH>,
Source§fn permute_state(&self, state: &mut [MontyField31<FP>; WIDTH])
fn permute_state(&self, state: &mut [MontyField31<FP>; WIDTH])
Perform the internal layers of the Poseidon2 permutation on the given state.
Source§impl<FP, ILP, const WIDTH: usize, const D: u64> InternalLayer<PackedMontyField31Neon<FP>, WIDTH, D> for Poseidon2InternalLayerMonty31<FP, WIDTH, ILP>where
FP: FieldParameters,
ILP: InternalLayerBaseParameters<FP, WIDTH>,
impl<FP, ILP, const WIDTH: usize, const D: u64> InternalLayer<PackedMontyField31Neon<FP>, WIDTH, D> for Poseidon2InternalLayerMonty31<FP, WIDTH, ILP>where
FP: FieldParameters,
ILP: InternalLayerBaseParameters<FP, WIDTH>,
Source§fn permute_state(&self, state: &mut [PackedMontyField31Neon<FP>; WIDTH])
fn permute_state(&self, state: &mut [PackedMontyField31Neon<FP>; WIDTH])
Perform the internal layers of the Poseidon2 permutation on the given state.
Source§impl<FP: FieldParameters, const WIDTH: usize, ILP: InternalLayerBaseParameters<FP, WIDTH>> InternalLayerConstructor<PackedMontyField31Neon<FP>> for Poseidon2InternalLayerMonty31<FP, WIDTH, ILP>
impl<FP: FieldParameters, const WIDTH: usize, ILP: InternalLayerBaseParameters<FP, WIDTH>> InternalLayerConstructor<PackedMontyField31Neon<FP>> for Poseidon2InternalLayerMonty31<FP, WIDTH, ILP>
Source§fn new_from_constants(internal_constants: Vec<MontyField31<FP>>) -> Self
fn new_from_constants(internal_constants: Vec<MontyField31<FP>>) -> 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, ILP> Freeze for Poseidon2InternalLayerMonty31<MP, WIDTH, ILP>
impl<MP, const WIDTH: usize, ILP> RefUnwindSafe for Poseidon2InternalLayerMonty31<MP, WIDTH, ILP>where
ILP: RefUnwindSafe,
MP: RefUnwindSafe,
impl<MP, const WIDTH: usize, ILP> Send for Poseidon2InternalLayerMonty31<MP, WIDTH, ILP>where
ILP: Send,
impl<MP, const WIDTH: usize, ILP> Sync for Poseidon2InternalLayerMonty31<MP, WIDTH, ILP>
impl<MP, const WIDTH: usize, ILP> Unpin for Poseidon2InternalLayerMonty31<MP, WIDTH, ILP>
impl<MP, const WIDTH: usize, ILP> UnwindSafe for Poseidon2InternalLayerMonty31<MP, WIDTH, ILP>where
ILP: UnwindSafe,
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