pub struct Fe32(/* private fields */);Expand description
An element in GF(32), the finite field containing elements [0,31] inclusive.
Implementations§
Source§impl Fe32
impl Fe32
Sourcepub fn iter_alpha() -> impl Iterator<Item = Fe32>
pub fn iter_alpha() -> impl Iterator<Item = Fe32>
Iterator over all field elements, in alphabetical order.
Sourcepub fn from_char(c: char) -> Result<Fe32, FromCharError>
pub fn from_char(c: char) -> Result<Fe32, FromCharError>
Creates a field element from a single bech32 character.
§Errors
If the input char is not part of the bech32 alphabet.
Sourcepub fn from_char_unchecked(c: u8) -> Fe32
pub fn from_char_unchecked(c: u8) -> Fe32
Creates a field element from a single bech32 character.
§Panics
If the input character is not part of the bech32 alphabet.
Trait Implementations§
Source§impl AddAssign for Fe32
impl AddAssign for Fe32
Source§fn add_assign(&mut self, other: Fe32)
fn add_assign(&mut self, other: Fe32)
Performs the
+= operation. Read moreSource§impl DivAssign for Fe32
impl DivAssign for Fe32
Source§fn div_assign(&mut self, other: Fe32)
fn div_assign(&mut self, other: Fe32)
Performs the
/= operation. Read moreSource§impl MulAssign for Fe32
impl MulAssign for Fe32
Source§fn mul_assign(&mut self, other: Fe32)
fn mul_assign(&mut self, other: Fe32)
Performs the
*= operation. Read moreSource§impl SubAssign for Fe32
impl SubAssign for Fe32
Source§fn sub_assign(&mut self, other: Fe32)
fn sub_assign(&mut self, other: Fe32)
Performs the
-= operation. Read moreimpl Copy for Fe32
impl Eq for Fe32
impl StructuralPartialEq for Fe32
Auto Trait Implementations§
impl Freeze for Fe32
impl RefUnwindSafe for Fe32
impl Send for Fe32
impl Sync for Fe32
impl Unpin for Fe32
impl UnsafeUnpin for Fe32
impl UnwindSafe for Fe32
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more