p3_poseidon2

Trait ExternalLayerConstructor

Source
pub trait ExternalLayerConstructor<AF, const WIDTH: usize>
where AF: AbstractField,
{ // Required method fn new_from_constants( external_constants: ExternalLayerConstants<AF::F, WIDTH>, ) -> Self; }
Expand description

Initialize an external layer from a set of constants.

Required Methods§

Source

fn new_from_constants( external_constants: ExternalLayerConstants<AF::F, WIDTH>, ) -> Self

A constructor which internally will convert the supplied constants into the appropriate form for the implementation.

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§