Skip to main content

FullRoundLayerConstructor

Trait FullRoundLayerConstructor 

Source
pub trait FullRoundLayerConstructor<F: Field, const WIDTH: usize> {
    // Required method
    fn new_from_constants(constants: FullRoundConstants<F, WIDTH>) -> Self;
}
Expand description

Construct a full round layer from pre-computed constants.

Required Methods§

Source

fn new_from_constants(constants: FullRoundConstants<F, WIDTH>) -> Self

Build the layer from the full-round constants.

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§

Source§

impl<F: Field, Mds, const WIDTH: usize> FullRoundLayerConstructor<F, WIDTH> for Poseidon1ExternalLayerGeneric<F, Mds, WIDTH>