pub struct BinaryElem128(/* private fields */);Implementations§
Source§impl BinaryElem128
impl BinaryElem128
pub const fn from_value(val: u128) -> Self
Source§impl BinaryElem128
impl BinaryElem128
Trait Implementations§
Source§impl BinaryFieldElement for BinaryElem128
impl BinaryFieldElement for BinaryElem128
type Poly = BinaryPoly128
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 BinaryElem128
impl Clone for BinaryElem128
Source§fn clone(&self) -> BinaryElem128
fn clone(&self) -> BinaryElem128
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 BinaryElem128
impl Debug for BinaryElem128
Source§impl Default for BinaryElem128
impl Default for BinaryElem128
Source§fn default() -> BinaryElem128
fn default() -> BinaryElem128
Returns the “default value” for a type. Read more
Source§impl Distribution<BinaryElem128> for Standard
Available on crate feature rand only.
impl Distribution<BinaryElem128> for Standard
Available on crate feature
rand only.Source§fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> BinaryElem128
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> BinaryElem128
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 BinaryElem128
impl From<BinaryElem16> for BinaryElem128
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<BinaryElem64> for BinaryElem128
impl From<BinaryElem64> for BinaryElem128
Source§fn from(elem: BinaryElem64) -> Self
fn from(elem: BinaryElem64) -> Self
Converts to this type from the input type.
Source§impl From<u128> for BinaryElem128
impl From<u128> for BinaryElem128
Source§impl PartialEq for BinaryElem128
impl PartialEq for BinaryElem128
impl Copy for BinaryElem128
impl Eq for BinaryElem128
impl Pod for BinaryElem128
impl StructuralPartialEq for BinaryElem128
Auto Trait Implementations§
impl Freeze for BinaryElem128
impl RefUnwindSafe for BinaryElem128
impl Send for BinaryElem128
impl Sync for BinaryElem128
impl Unpin for BinaryElem128
impl UnsafeUnpin for BinaryElem128
impl UnwindSafe for BinaryElem128
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.