Struct prio::field::Field80 [−][src]
pub struct Field80(_);
Expand description
(NOTE: These parameters are experimental. Applications should expect them to
change.) GF(779190469673491460259841)
, an 80-bit field. The generator has order 2^72
.
Trait Implementations
Performs the +=
operation. Read more
Deserialize this value from the given Serde deserializer. Read more
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 *=
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
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 Field80
impl UnwindSafe for Field80
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self