snarkvm_console_program

Trait ToFields

Source
pub trait ToFields {
    type Field: FieldTrait;

    // Required method
    fn to_fields(&self) -> Result<Vec<Self::Field>, Error>;
}
Expand description

Unary operator for converting to a list of base fields.

Required Associated Types§

Required Methods§

Source

fn to_fields(&self) -> Result<Vec<Self::Field>, Error>

Returns the object as a list of base field elements.

Implementations on Foreign Types§

Source§

impl<N> ToFields for ComputeKey<N>
where N: Network,

Source§

fn to_fields(&self) -> Result<Vec<<ComputeKey<N> as ToFields>::Field>, Error>

Casts a compute key into a list of base fields.

Source§

type Field = Field<N>

Implementors§