Struct prio::field::FieldPriov2 [−][src]
pub struct FieldPriov2(_);
Expand description
Same as Field32, but encoded in little endian for compatibility with Prio v2.
Trait Implementations
type Output = FieldPriov2
type Output = FieldPriov2
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = FieldPriov2
type Output = FieldPriov2
The resulting type after applying the +
operator.
Performs the +=
operation. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
type Output = FieldPriov2
type Output = FieldPriov2
The resulting type after applying the /
operator.
Performs the /
operation. Read more
type Output = FieldPriov2
type Output = FieldPriov2
The resulting type after applying the /
operator.
Performs the /=
operation. Read more
Size in bytes of the encoding of a value.
type IntegerTryFromError = <Self::Integer as TryFrom<usize>>::Error
type IntegerTryFromError = <Self::Integer as TryFrom<usize>>::Error
The error returned if converting usize
to an Int
fails.
Modular inversion, i.e., self^-1 (mod p)
. If self
is 0, then the output is undefined.
Interprets the next Self::ENCODED_SIZE
bytes from the input slice as an element of the
field. Read more
Returns the generator of the multiplicative subgroup of size generator_order()
.
Returns the size of the multiplicative subgroup generated by generator()
.
Returns the 2^l
-th principal root of unity for any l <= 20
. Note that the 2^0
-th
prinicpal root of unity is 1 by definition. Read more
Convert a slice of field elements into a vector of bytes. Read more
Convert a slice of bytes into a vector of field elements. The slice is interpreted as a
sequence of Self::ENCODED_SIZE
-byte sequences. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
type Output = FieldPriov2
type Output = FieldPriov2
The resulting type after applying the *
operator.
Performs the *
operation. Read more
type Output = FieldPriov2
type Output = FieldPriov2
The resulting type after applying the *
operator.
Performs the *=
operation. Read more
type Output = FieldPriov2
type Output = FieldPriov2
The resulting type after applying the -
operator.
type Output = FieldPriov2
type Output = FieldPriov2
The resulting type after applying the -
operator.
Performs the unary -
operation. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
type Output = FieldPriov2
type Output = FieldPriov2
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = FieldPriov2
type Output = FieldPriov2
The resulting type after applying the -
operator.
Performs the -=
operation. Read more
type Error = FieldError
type Error = FieldError
The type returned in the event of a conversion error.
Auto Trait Implementations
impl RefUnwindSafe for FieldPriov2
impl Send for FieldPriov2
impl Sync for FieldPriov2
impl Unpin for FieldPriov2
impl UnwindSafe for FieldPriov2
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self