snarkvm_circuit_environment::traits

Trait FromFields

Source
pub trait FromFields {
    type Field: FieldTrait;

    // Required method
    fn from_fields(fields: &[Self::Field]) -> Self;
}
Expand description

Unary operator for converting from a list of base elements.

Required Associated Types§

Required Methods§

Source

fn from_fields(fields: &[Self::Field]) -> Self

Casts a circuit from a list of base field elements.

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§