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 PartialEq for Fe32
impl PartialEq for Fe32
source§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 RefUnwindSafe for Fe32
impl Send for Fe32
impl Sync for Fe32
impl Unpin 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