pub struct BinaryElem32(/* private fields */);Implementations§
Source§impl BinaryElem32
impl BinaryElem32
pub const fn from_value(val: u32) -> Self
Trait Implementations§
Source§impl BinaryFieldElement for BinaryElem32
impl BinaryFieldElement for BinaryElem32
type Poly = BinaryPoly32
fn zero() -> Self
fn one() -> Self
fn from_poly(poly: Self::Poly) -> Self
fn poly(&self) -> Self::Poly
fn add(&self, other: &Self) -> Self
fn mul(&self, other: &Self) -> Self
fn inv(&self) -> Self
fn pow(&self, exp: u64) -> Self
fn from_bits(bits: u64) -> Self
Source§impl Clone for BinaryElem32
impl Clone for BinaryElem32
Source§fn clone(&self) -> BinaryElem32
fn clone(&self) -> BinaryElem32
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BinaryElem32
impl Debug for BinaryElem32
Source§impl Default for BinaryElem32
impl Default for BinaryElem32
Source§fn default() -> BinaryElem32
fn default() -> BinaryElem32
Returns the “default value” for a type. Read more
Source§impl Distribution<BinaryElem32> for Standard
Available on crate feature rand only.
impl Distribution<BinaryElem32> for Standard
Available on crate feature
rand only.Source§fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> BinaryElem32
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> BinaryElem32
Generate a random value of
T, using rng as the source of randomness.Source§fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
Create an iterator that generates random values of
T, using rng as
the source of randomness. Read moreSource§impl From<BinaryElem16> for BinaryElem32
impl From<BinaryElem16> for BinaryElem32
Source§fn from(elem: BinaryElem16) -> Self
fn from(elem: BinaryElem16) -> Self
Converts to this type from the input type.
Source§impl From<BinaryElem32> for BinaryElem128
impl From<BinaryElem32> for BinaryElem128
Source§fn from(elem: BinaryElem32) -> Self
fn from(elem: BinaryElem32) -> Self
Converts to this type from the input type.
Source§impl From<BinaryElem32> for BinaryElem64
impl From<BinaryElem32> for BinaryElem64
Source§fn from(elem: BinaryElem32) -> Self
fn from(elem: BinaryElem32) -> Self
Converts to this type from the input type.
Source§impl From<u32> for BinaryElem32
impl From<u32> for BinaryElem32
Source§impl PartialEq for BinaryElem32
impl PartialEq for BinaryElem32
impl Copy for BinaryElem32
impl Eq for BinaryElem32
impl Pod for BinaryElem32
impl StructuralPartialEq for BinaryElem32
Auto Trait Implementations§
impl Freeze for BinaryElem32
impl RefUnwindSafe for BinaryElem32
impl Send for BinaryElem32
impl Sync for BinaryElem32
impl Unpin for BinaryElem32
impl UnsafeUnpin for BinaryElem32
impl UnwindSafe for BinaryElem32
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.