#[repr(transparent)]pub struct PxE1<const N: u32>(_);
Implementations§
source§impl<const N: u32> PxE1<{ N }>
impl<const N: u32> PxE1<{ 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 to_i32(self) -> i32
pub const fn to_u32(self) -> u32
pub const fn to_i64(self) -> i64
pub const fn to_u64(self) -> u64
pub const fn from_u64(a: u64) -> Self
pub const fn from_i64(_a: i64) -> Self
pub const fn from_i32(a: i32) -> Self
pub const fn from_u32(_a: u32) -> Self
source§impl<const N: u32> PxE1<{ N }>
impl<const N: u32> PxE1<{ N }>
pub const ES: usize = 1usize
pub const USEED: usize = 4usize
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> PxE1<{ N }>
impl<const N: u32> PxE1<{ N }>
pub const fn from_p32e2(p_a: P32E2) -> Self
pub const fn from_p8e0(p_a: P8E0) -> Self
pub const fn from_p16e1(p_a: P16E1) -> Self
pub const fn from_pxe2<const M: u32>(p_a: PxE2<{ M }>) -> Self
pub const fn to_pxe2<const M: u32>(self) -> PxE2<{ M }>
pub const fn to_p32e2(self) -> P32E2
pub const fn to_p16e1(self) -> P16E1
pub const fn to_p8e0(self) -> P8E0
Trait Implementations§
source§impl<const N: u32> AddAssign<PxE1<N>> for PxE1<{ N }>
impl<const N: u32> AddAssign<PxE1<N>> for PxE1<{ 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> DivAssign<PxE1<N>> for PxE1<{ N }>
impl<const N: u32> DivAssign<PxE1<N>> for PxE1<{ 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<PxE1<N>> for PxE1<{ N }>
impl<const N: u32> MulAssign<PxE1<N>> for PxE1<{ 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 PxE1<N>
impl<const N: u32> Ord for PxE1<N>
source§impl<const N: u32> PartialEq<PxE1<N>> for PxE1<N>
impl<const N: u32> PartialEq<PxE1<N>> for PxE1<N>
source§impl<const N: u32> PartialOrd<PxE1<N>> for PxE1<N>
impl<const N: u32> PartialOrd<PxE1<N>> for PxE1<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> SubAssign<PxE1<N>> for PxE1<{ N }>
impl<const N: u32> SubAssign<PxE1<N>> for PxE1<{ N }>
source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-=
operation. Read more