Skip to main content

PartialRoundLayerConstructor

Trait PartialRoundLayerConstructor 

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

Construct a partial round layer from pre-computed constants.

Required Methods§

Source

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

Build the layer from the sparse-form optimized 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> PartialRoundLayerConstructor<F, WIDTH> for Poseidon1InternalLayerTextbook<F, Mds, WIDTH>

Source§

impl<F: Field, const WIDTH: usize> PartialRoundLayerConstructor<F, WIDTH> for Poseidon1InternalLayerGeneric<F, WIDTH>