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