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§
Sourcefn internal_linear_layer(state: &mut [AF; WIDTH])
fn internal_linear_layer(state: &mut [AF; WIDTH])
A generic implementation of the internal linear layer.
Provided Methods§
Sourcefn external_linear_layer(state: &mut [AF; WIDTH])
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.