p3_poseidon2

Trait GenericPoseidon2LinearLayers

Source
pub trait GenericPoseidon2LinearLayers<AF: AbstractField, const WIDTH: usize>: Sync {
    // Required method
    fn internal_linear_layer(state: &mut [AF; WIDTH]);

    // Provided method
    fn external_linear_layer(state: &mut [AF; WIDTH]) { ... }
}

Required Methods§

Source

fn internal_linear_layer(state: &mut [AF; WIDTH])

A generic implementation of the internal linear layer.

Provided Methods§

Source

fn external_linear_layer(state: &mut [AF; WIDTH])

A generic implementation of the external linear layer.

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§