Skip to main content

PrimeFieldExt

Trait PrimeFieldExt 

Source
pub trait PrimeFieldExt: FieldExt + PrimeField {
    const REPR_ENDIANNESS: ByteOrder = ByteOrder::BigEndian;

    // Provided methods
    fn to_be_repr(&self) -> Self::Repr { ... }
    fn to_le_repr(&self) -> Self::Repr { ... }
}
Expand description

Extension trait for ff::PrimeField which enables specifying the endianness in which ff::PrimeField::Repr is encoded.

Provided Associated Constants§

Source

const REPR_ENDIANNESS: ByteOrder = ByteOrder::BigEndian

Endianness used when encoding ff::PrimeField::Repr.

Provided Methods§

Source

fn to_be_repr(&self) -> Self::Repr

Encode self using a big endian representation.

Source

fn to_le_repr(&self) -> Self::Repr

Encode self using a little endian representation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§