#[repr(transparent)]pub struct PxE2<const N: u32>(_);
Implementations§
source§impl<const N: u32> PxE2<{ N }>
impl<const N: u32> PxE2<{ N }>
pub fn to_f32(self) -> f32
pub fn to_f64(self) -> f64
pub fn from_f32(float: f32) -> Self
pub fn from_f64(float: f64) -> Self
pub const fn from_i32(i_a: i32) -> Self
pub const fn from_u32(a: u32) -> Self
pub const fn from_i64(i_a: i64) -> Self
pub const fn from_u64(a: u64) -> Self
pub const fn to_i32(self) -> i32
pub const fn to_u32(self) -> u32
pub const fn to_u64(self) -> u64
pub const fn to_i64(self) -> i64
source§impl<const N: u32> PxE2<{ N }>
impl<const N: u32> PxE2<{ N }>
pub const ES: usize = 2usize
pub const USEED: usize = 16usize
pub const fn new(i: i32) -> Self
pub const fn is_zero(self) -> bool
pub const fn is_nar(self) -> bool
pub const fn from_bits(v: u32) -> Self
pub const fn to_bits(self) -> u32
pub const fn eq(self, other: Self) -> bool
pub const fn cmp(self, other: Self) -> Ordering
pub const fn lt(&self, other: Self) -> bool
pub const fn le(&self, other: Self) -> bool
pub const fn ge(&self, other: Self) -> bool
pub const fn gt(&self, other: Self) -> bool
source§impl<const N: u32> PxE2<{ N }>
impl<const N: u32> PxE2<{ N }>
pub const fn from_p32e2(p_a: P32E2) -> Self
pub const fn from_p16e1(p_a: P16E1) -> Self
pub const fn from_p8e0(p_a: P8E0) -> Self
pub const fn to_pxe1<const M: u32>(self) -> PxE1<{ M }>
pub const fn from_pxe1<const M: u32>(p_a: PxE1<{ M }>) -> Self
pub const fn to_p32e2(self) -> P32E2
pub const fn to_p16e1(self) -> P16E1
pub const fn to_p8e0(self) -> P8E0
pub const fn from_pxe2<const M: u32>(p_a: PxE2<{ M }>) -> Self
Trait Implementations§
source§impl<const N: u32> AddAssign<PxE2<N>> for PxE2<{ N }>
impl<const N: u32> AddAssign<PxE2<N>> for PxE2<{ N }>
source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moresource§impl<const N: u32> AddAssign<PxE2<N>> for Q32E2
impl<const N: u32> AddAssign<PxE2<N>> for Q32E2
source§fn add_assign(&mut self, rhs: PxE2<{ N }>)
fn add_assign(&mut self, rhs: PxE2<{ N }>)
Performs the
+=
operation. Read moresource§impl<const N: u32> DivAssign<PxE2<N>> for PxE2<{ N }>
impl<const N: u32> DivAssign<PxE2<N>> for PxE2<{ N }>
source§fn div_assign(&mut self, other: Self)
fn div_assign(&mut self, other: Self)
Performs the
/=
operation. Read moresource§impl<const N: u32> MulAssign<PxE2<N>> for PxE2<{ N }>
impl<const N: u32> MulAssign<PxE2<N>> for PxE2<{ N }>
source§fn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the
*=
operation. Read moresource§impl<const N: u32> Ord for PxE2<N>
impl<const N: u32> Ord for PxE2<N>
source§impl<const N: u32> PartialEq<PxE2<N>> for PxE2<N>
impl<const N: u32> PartialEq<PxE2<N>> for PxE2<N>
source§impl<const N: u32> PartialOrd<PxE2<N>> for PxE2<N>
impl<const N: u32> PartialOrd<PxE2<N>> for PxE2<N>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<const N: u32> Quire<PxE2<N>> for Q32E2
impl<const N: u32> Quire<PxE2<N>> for Q32E2
type Bits = [u64; 8]
fn init() -> Self
fn from_posit(p: PxE2<{ N }>) -> Self
fn to_posit(&self) -> PxE2<{ N }>
fn from_bits(v: Self::Bits) -> Self
fn to_bits(&self) -> Self::Bits
fn is_zero(&self) -> bool
fn is_nar(&self) -> bool
fn add_product(&mut self, p_a: PxE2<{ N }>, p_b: PxE2<{ N }>)
fn sub_product(&mut self, p_a: PxE2<{ N }>, p_b: PxE2<{ N }>)
fn clear(&mut self)
fn neg(&mut self)
source§impl<const N: u32> SubAssign<PxE2<N>> for PxE2<{ N }>
impl<const N: u32> SubAssign<PxE2<N>> for PxE2<{ N }>
source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-=
operation. Read moresource§impl<const N: u32> SubAssign<PxE2<N>> for Q32E2
impl<const N: u32> SubAssign<PxE2<N>> for Q32E2
source§fn sub_assign(&mut self, rhs: PxE2<{ N }>)
fn sub_assign(&mut self, rhs: PxE2<{ N }>)
Performs the
-=
operation. Read more