InternalLayer

Trait InternalLayer 

Source
pub trait InternalLayer<R, const WIDTH: usize, const D: u64>: Sync + Clone{
    // Required method
    fn permute_state(&self, state: &mut [R; 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 [R; 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§