p3_poseidon2

Trait InternalLayer

Source
pub trait InternalLayer<AF, const WIDTH: usize, const D: u64>: Sync + Clone
where 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§

Source

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.

Implementors§