pub trait FromFields {
type Field: FieldTrait;
// Required method
fn from_fields(fields: &[Self::Field]) -> Result<Self, Error>
where Self: Sized;
}
Expand description
Unary operator for converting from a list of base elements.
Required Associated Types§
type Field: FieldTrait
Required Methods§
Implementations on Foreign Types§
Source§impl<E> FromFields for Address<E>where
E: Environment,
impl<E> FromFields for Address<E>where
E: Environment,
Source§impl<E> FromFields for Group<E>where
E: Environment,
impl<E> FromFields for Group<E>where
E: Environment,
Source§impl<E, I> FromFields for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> FromFields for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<N> FromFields for Plaintext<N>where
N: Network,
impl<N> FromFields for Plaintext<N>where
N: Network,
Source§impl<N> FromFields for Ciphertext<N>where
N: Network,
impl<N> FromFields for Ciphertext<N>where
N: Network,
Source§fn from_fields(
fields: &[<Ciphertext<N> as FromFields>::Field],
) -> Result<Ciphertext<N>, Error>
fn from_fields( fields: &[<Ciphertext<N> as FromFields>::Field], ) -> Result<Ciphertext<N>, Error>
Initializes a ciphertext from a list of base field elements.