pub struct FixedU32 { /* private fields */ }
Expand description
Implementations§
Source§impl FixedU32
impl FixedU32
pub const fn from_parts(whole: u16, fracs: u16) -> Self
pub const fn from_raw_value(data: u32) -> Self
pub const fn trunc(&self) -> u16
pub const fn whole(&self) -> u16
pub const fn fract(&self) -> u16
pub const fn raw_value(&self) -> u32
pub fn as_f64(&self) -> f64
pub const fn is_zero(&self) -> bool
Trait Implementations§
Source§impl AddAssign<&FixedU32> for &mut FixedU32
impl AddAssign<&FixedU32> for &mut FixedU32
Source§fn add_assign(&mut self, rhs: &FixedU32)
fn add_assign(&mut self, rhs: &FixedU32)
Performs the
+=
operation. Read moreSource§impl AddAssign<&FixedU32> for FixedU32
impl AddAssign<&FixedU32> for FixedU32
Source§fn add_assign(&mut self, rhs: &FixedU32)
fn add_assign(&mut self, rhs: &FixedU32)
Performs the
+=
operation. Read moreSource§impl AddAssign<&mut FixedU32> for &mut FixedU32
impl AddAssign<&mut FixedU32> for &mut FixedU32
Source§fn add_assign(&mut self, rhs: &mut FixedU32)
fn add_assign(&mut self, rhs: &mut FixedU32)
Performs the
+=
operation. Read moreSource§impl AddAssign<&mut FixedU32> for FixedU32
impl AddAssign<&mut FixedU32> for FixedU32
Source§fn add_assign(&mut self, rhs: &mut FixedU32)
fn add_assign(&mut self, rhs: &mut FixedU32)
Performs the
+=
operation. Read moreSource§impl AddAssign<FixedU32> for &mut FixedU32
impl AddAssign<FixedU32> for &mut FixedU32
Source§fn add_assign(&mut self, rhs: FixedU32)
fn add_assign(&mut self, rhs: FixedU32)
Performs the
+=
operation. Read moreSource§impl AddAssign<f64> for &mut FixedU32
impl AddAssign<f64> for &mut FixedU32
Source§fn add_assign(&mut self, rhs: f64)
fn add_assign(&mut self, rhs: f64)
Performs the
+=
operation. Read moreSource§impl AddAssign<f64> for FixedU32
impl AddAssign<f64> for FixedU32
Source§fn add_assign(&mut self, rhs: f64)
fn add_assign(&mut self, rhs: f64)
Performs the
+=
operation. Read moreSource§impl AddAssign for FixedU32
impl AddAssign for FixedU32
Source§fn add_assign(&mut self, rhs: FixedU32)
fn add_assign(&mut self, rhs: FixedU32)
Performs the
+=
operation. Read moreSource§impl DivAssign for &mut FixedU32
impl DivAssign for &mut FixedU32
Source§fn div_assign(&mut self, rhs: &mut FixedU32)
fn div_assign(&mut self, rhs: &mut FixedU32)
Performs the
/=
operation. Read moreSource§impl DivAssign for FixedU32
impl DivAssign for FixedU32
Source§fn div_assign(&mut self, rhs: FixedU32)
fn div_assign(&mut self, rhs: FixedU32)
Performs the
/=
operation. Read moreSource§impl FloatExt for FixedU32
impl FloatExt for FixedU32
Source§fn exp(self) -> Self::Type
fn exp(self) -> Self::Type
Implementation of Exponential Function from NIST DTMF eq 4.2.19: <https://dlmf.nist.gov/4.2.E19>
Source§fn ln(self) -> Self::Type
fn ln(self) -> Self::Type
Implementation of Natural Logarithm using NIST DLMF eq 4.6.4: <https://dlmf.nist.gov/4.6.E4>
Source§fn powf(self, a: Self::Type) -> Self::Type
fn powf(self, a: Self::Type) -> Self::Type
Implementation of general power function using NIST DLMF eq 4.2.26: <https://dlmf.nist.gov/4.2.E26>
type Type = FixedU32
type Size = u32
fn trunc(self) -> Self::Type
fn fract(self) -> Self::Type
fn abs(self) -> Self::Type
fn round(self) -> Self::Type
fn floor(self) -> Self::Type
fn ceil(self) -> Self::Type
fn signum(self) -> Self::Type
fn powi(self, val: i32) -> Self::Type
fn sqrt(self) -> Self::Type
fn to_bits(self) -> Self::Size
fn exponent(self) -> u16
fn significand(self) -> Self::Size
Source§impl MulAssign for &mut FixedU32
impl MulAssign for &mut FixedU32
Source§fn mul_assign(&mut self, rhs: &mut FixedU32)
fn mul_assign(&mut self, rhs: &mut FixedU32)
Performs the
*=
operation. Read moreSource§impl MulAssign for FixedU32
impl MulAssign for FixedU32
Source§fn mul_assign(&mut self, rhs: FixedU32)
fn mul_assign(&mut self, rhs: FixedU32)
Performs the
*=
operation. Read moreSource§impl Ord for FixedU32
impl Ord for FixedU32
Source§impl PartialOrd<FixedU32> for u16
impl PartialOrd<FixedU32> for u16
Source§impl PartialOrd<FixedU32> for u8
impl PartialOrd<FixedU32> for u8
Source§impl PartialOrd<f64> for FixedU32
impl PartialOrd<f64> for FixedU32
Source§impl PartialOrd<u16> for FixedU32
impl PartialOrd<u16> for FixedU32
Source§impl PartialOrd<u8> for FixedU32
impl PartialOrd<u8> for FixedU32
Source§impl PartialOrd for FixedU32
impl PartialOrd for FixedU32
Source§impl SubAssign<&FixedU32> for &mut FixedU32
impl SubAssign<&FixedU32> for &mut FixedU32
Source§fn sub_assign(&mut self, rhs: &FixedU32)
fn sub_assign(&mut self, rhs: &FixedU32)
Performs the
-=
operation. Read moreSource§impl SubAssign<&FixedU32> for FixedU32
impl SubAssign<&FixedU32> for FixedU32
Source§fn sub_assign(&mut self, rhs: &FixedU32)
fn sub_assign(&mut self, rhs: &FixedU32)
Performs the
-=
operation. Read moreSource§impl SubAssign<&mut FixedU32> for &mut FixedU32
impl SubAssign<&mut FixedU32> for &mut FixedU32
Source§fn sub_assign(&mut self, rhs: &mut FixedU32)
fn sub_assign(&mut self, rhs: &mut FixedU32)
Performs the
-=
operation. Read moreSource§impl SubAssign<&mut FixedU32> for FixedU32
impl SubAssign<&mut FixedU32> for FixedU32
Source§fn sub_assign(&mut self, rhs: &mut FixedU32)
fn sub_assign(&mut self, rhs: &mut FixedU32)
Performs the
-=
operation. Read moreSource§impl SubAssign<FixedU32> for &mut FixedU32
impl SubAssign<FixedU32> for &mut FixedU32
Source§fn sub_assign(&mut self, rhs: FixedU32)
fn sub_assign(&mut self, rhs: FixedU32)
Performs the
-=
operation. Read moreSource§impl SubAssign for FixedU32
impl SubAssign for FixedU32
Source§fn sub_assign(&mut self, rhs: FixedU32)
fn sub_assign(&mut self, rhs: FixedU32)
Performs the
-=
operation. Read moreimpl Copy for FixedU32
impl Eq for FixedU32
impl StructuralPartialEq for FixedU32
Auto Trait Implementations§
impl Freeze for FixedU32
impl RefUnwindSafe for FixedU32
impl Send for FixedU32
impl Sync for FixedU32
impl Unpin for FixedU32
impl UnwindSafe for FixedU32
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