Trait oberon::inner_types::elliptic_curve::ff::PrimeFieldBits
pub trait PrimeFieldBits: PrimeField {
type ReprBits: BitViewSized + Send + Sync;
// Required methods
fn to_le_bits(&self) -> BitArray<Self::ReprBits, Lsb0>;
fn char_le_bits() -> BitArray<Self::ReprBits, Lsb0>;
}
Expand description
This represents the bits of an element of a prime field.
Required Associated Types§
type ReprBits: BitViewSized + Send + Sync
type ReprBits: BitViewSized + Send + Sync
The backing store for a bit representation of a prime field element.
Required Methods§
fn to_le_bits(&self) -> BitArray<Self::ReprBits, Lsb0>
fn to_le_bits(&self) -> BitArray<Self::ReprBits, Lsb0>
Converts an element of the prime field into a little-endian sequence of bits.
fn char_le_bits() -> BitArray<Self::ReprBits, Lsb0>
fn char_le_bits() -> BitArray<Self::ReprBits, Lsb0>
Returns the bits of the field characteristic (the modulus) in little-endian order.