pub struct Fe32(/* private fields */);
Expand description
An element in GF(32), the finite field containing elements [0,31]
inclusive.
Numeric value maps to bech32 character: 0 == “q”.
Numeric value maps to bech32 character: 1 == “p”.
Numeric value maps to bech32 character: 2 == “z”.
Numeric value maps to bech32 character: 3 == “r”.
Numeric value maps to bech32 character: 4 == “y”.
Numeric value maps to bech32 character: 5 == “9”.
Numeric value maps to bech32 character: 6 == “x”.
Numeric value maps to bech32 character: 7 == “8”.
Numeric value maps to bech32 character: 8 == “g”.
Numeric value maps to bech32 character: 9 == “f”.
Numeric value maps to bech32 character: 10 == “2”.
Numeric value maps to bech32 character: 11 == “t”.
Numeric value maps to bech32 character: 12 == “v”.
Numeric value maps to bech32 character: 13 == “d”.
Numeric value maps to bech32 character: 14 == “w”.
Numeric value maps to bech32 character: 15 == “0”.
Numeric value maps to bech32 character: 16 == “s”.
Numeric value maps to bech32 character: 17 == “3”.
Numeric value maps to bech32 character: 18 == “j”.
Numeric value maps to bech32 character: 19 == “n”.
Numeric value maps to bech32 character: 20 == “5”.
Numeric value maps to bech32 character: 21 == “4”.
Numeric value maps to bech32 character: 22 == “k”.
Numeric value maps to bech32 character: 23 == “h”.
Numeric value maps to bech32 character: 24 == “c”.
Numeric value maps to bech32 character: 25 == “e”.
Numeric value maps to bech32 character: 26 == “6”.
Numeric value maps to bech32 character: 27 == “m”.
Numeric value maps to bech32 character: 28 == “u”.
Numeric value maps to bech32 character: 29 == “a”.
Numeric value maps to bech32 character: 30 == “7”.
Numeric value maps to bech32 character: 31 == “l”.
Iterator over all field elements, in alphabetical order.
Creates a field element from a single bech32 character.
If the input char is not part of the bech32 alphabet.
Creates a field element from a single bech32 character.
If the input character is not part of the bech32 alphabet.
Converts the field element to a lowercase bech32 character.
Converts the field element to a 5-bit u8, with bits representing the coefficients
of the polynomial representation.
The resulting type after applying the +
operator.
The resulting type after applying the +
operator.
The resulting type after applying the +
operator.
The resulting type after applying the +
operator.
Converts this type into a shared reference of the (usually inferred) input type.
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
Formats the value using the given formatter.
Read more
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
Converts to this type from the input type.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
This method tests for self
and other
values to be equal, and is used
by ==
.
This method tests for !=
. The default implementation is almost always
sufficient, and should not be overridden without very good reason.
The resulting type after applying the -
operator.
The resulting type after applying the -
operator.
The resulting type after applying the -
operator.
The resulting type after applying the -
operator.
Tries to create an Fe32
type from a signed source number type.
Returns an error if value
is outside of the range of an Fe32
.
The type returned in the event of a conversion error.
Tries to create an Fe32
type from a signed source number type.
Returns an error if value
is outside of the range of an Fe32
.
The type returned in the event of a conversion error.
Tries to create an Fe32
type from a signed source number type.
Returns an error if value
is outside of the range of an Fe32
.
The type returned in the event of a conversion error.
Tries to create an Fe32
type from a signed source number type.
Returns an error if value
is outside of the range of an Fe32
.
The type returned in the event of a conversion error.
Tries to create an Fe32
type from a signed source number type.
Returns an error if value
is outside of the range of an Fe32
.
The type returned in the event of a conversion error.
Tries to create an Fe32
type from a signed source number type.
Returns an error if value
is outside of the range of an Fe32
.
The type returned in the event of a conversion error.
Tries to create an Fe32
type from a signed source number type.
Returns an error if value
is outside of the range of an Fe32
.
The type returned in the event of a conversion error.
Tries to create an Fe32
type from a signed source number type.
Returns an error if value
is outside of the range of an Fe32
.
The type returned in the event of a conversion error.
Tries to create an Fe32
type from a signed source number type.
Returns an error if value
is outside of the range of an Fe32
.
The type returned in the event of a conversion error.
Tries to create an Fe32
type from a signed source number type.
Returns an error if value
is outside of the range of an Fe32
.
The type returned in the event of a conversion error.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
Converts the given value to a
String
.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.