ff

Trait PrimeFieldBits

Source
pub trait PrimeFieldBits: PrimeField {
    type ReprBits: BitViewSized + Send + Sync;

    // Required methods
    fn to_le_bits(&self) -> FieldBits<Self::ReprBits>;
    fn char_le_bits() -> FieldBits<Self::ReprBits>;
}
Expand description

This represents the bits of an element of a prime field.

Required Associated Types§

Source

type ReprBits: BitViewSized + Send + Sync

The backing store for a bit representation of a prime field element.

Required Methods§

Source

fn to_le_bits(&self) -> FieldBits<Self::ReprBits>

Converts an element of the prime field into a little-endian sequence of bits.

Source

fn char_le_bits() -> FieldBits<Self::ReprBits>

Returns the bits of the field characteristic (the modulus) in little-endian order.

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§