pub trait InternalLayer<AF, const WIDTH: usize, const D: u64>: Sync + Clonewhere
AF: AbstractField,{
// Required method
fn permute_state(&self, state: &mut [AF; WIDTH]);
}
Expand description
A trait containing all data needed to implement the internal layers of Poseidon2.
Required Methods§
Sourcefn permute_state(&self, state: &mut [AF; WIDTH])
fn permute_state(&self, state: &mut [AF; WIDTH])
Perform the internal layers of the Poseidon2 permutation on the given state.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.