Struct winter_math::fields::CubeExtension [−][src]
#[repr(C)]pub struct CubeExtension<B: ExtensibleField<3>>(_, _, _);Expand description
Represents an element in a cubic extension of a StarkField.
The extension element is defined as α + β * φ + γ * φ^2, where φ is a root of in irreducible polynomial defined by the implementation of the ExtensibleField trait, and α, β, γ are base field elements.
Implementations
Returns a new extension element instantiated from the provided base elements.
Returns true if the base field specified by B type parameter supports cubic extensions.
Trait Implementations
Performs the += operation. Read more
Returns the “default value” for a type. Read more
Reads a sequence of bytes from the provided source, attempts to deserialize these bytes
into Self, and returns the result. Read more
fn read_batch_from<R>(
source: &mut R,
num_elements: usize
) -> Result<Vec<Self, Global>, DeserializationError> where
R: ByteReader,
fn read_batch_from<R>(
source: &mut R,
num_elements: usize
) -> Result<Vec<Self, Global>, DeserializationError> where
R: ByteReader,
Reads a sequence of bytes from the provided source, attempts to deserialize these bytes
into a vector with the specified number of Self elements, and returns the result. Read more
Performs the /= operation. Read more
type PositiveInteger = B::PositiveInteger
type PositiveInteger = B::PositiveInteger
A type defining positive integers big enough to describe a field modulus for
Self::BaseField with no loss of precision. Read more
type BaseField = B
type BaseField = B
Base field type for this finite field. For prime fields, BaseField should be set
to Self. Read more
Number of bytes needed to encode an element
True if internal representation of the element is the same as its canonical representation.
Returns a multiplicative inverse of this field element. If this element is ZERO, ZERO is returned. Read more
Converts a list of elements into a list of bytes. Read more
Converts a list of bytes into a list of field elements. Read more
Returns a vector of length n initialized with all ZERO elements. Read more
Converts a list of field elements into a list of elements in the underlying base field. Read more
Exponentiates this field element by power parameter.
Performs the *= operation. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Size of Self in bytes. Read more
Performs the -= operation. Read more
Converts a slice of bytes into a field element; returns error if the value encoded in bytes is not a valid field element. The bytes are assumed to be in little-endian byte order.
type Error = DeserializationError
type Error = DeserializationError
The type returned in the event of a conversion error.
Auto Trait Implementations
impl<B> RefUnwindSafe for CubeExtension<B> where
B: RefUnwindSafe,
impl<B> Send for CubeExtension<B>
impl<B> Sync for CubeExtension<B>
impl<B> Unpin for CubeExtension<B> where
B: Unpin,
impl<B> UnwindSafe for CubeExtension<B> where
B: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
