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§

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.

§

type Field = Field<N>

Implementors§

§

impl<E> ToFields for Address<E>
where E: Environment,

§

type Field = Field<E>

§

impl<E> ToFields for Group<E>
where E: Environment,

§

type Field = Field<E>

§

impl<E, I> ToFields for Integer<E, I>
where E: Environment, I: IntegerType,

§

type Field = Field<E>

source§

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

§

type Field = Field<N>

source§

impl<N: Network> ToFields for Plaintext<N>

§

type Field = Field<N>

source§

impl<N: Network> ToFields for Value<N>

§

type Field = Field<N>

source§

impl<N: Network> ToFields for Ciphertext<N>

§

type Field = Field<N>

source§

impl<N: Network> ToFields for Future<N>

§

type Field = Field<N>

source§

impl<N: Network> ToFields for Locator<N>

§

type Field = Field<N>

source§

impl<N: Network> ToFields for ProgramID<N>

§

type Field = Field<N>

source§

impl<N: Network> ToFields for Record<N, Plaintext<N>>

§

type Field = Field<N>

source§

impl<N: Network> ToFields for Record<N, Ciphertext<N>>

§

type Field = Field<N>