#[repr(transparent)]pub struct SoftF64(pub f64);
Tuple Fields§
§0: f64
Implementations§
Source§impl SoftF64
impl SoftF64
pub const fn from_f64(a: f64) -> Self
pub const fn to_f64(self) -> f64
pub const fn from_bits(a: u64) -> Self
pub const fn to_bits(self) -> u64
pub const fn add(self, rhs: Self) -> Self
pub const fn mul(self, rhs: Self) -> Self
pub const fn div(self, rhs: Self) -> Self
pub const fn cmp(self, rhs: Self) -> Option<Ordering>
pub const fn neg(self) -> Self
pub const fn sub(self, rhs: Self) -> Self
pub const fn sqrt(self) -> Self
pub const fn powi(self, n: i32) -> Self
pub const fn copysign(self, other: Self) -> Self
pub const fn trunc(self) -> Self
pub const fn round(self) -> Self
pub const fn floor(self) -> Self
pub const fn sin(self) -> Self
pub const fn cos(self) -> Self
Trait Implementations§
Source§impl AddAssign for SoftF64
impl AddAssign for SoftF64
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moreSource§impl PartialOrd for SoftF64
impl PartialOrd for SoftF64
Source§impl SubAssign for SoftF64
impl SubAssign for SoftF64
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for SoftF64
Auto Trait Implementations§
impl Freeze for SoftF64
impl RefUnwindSafe for SoftF64
impl Send for SoftF64
impl Sync for SoftF64
impl Unpin for SoftF64
impl UnwindSafe for SoftF64
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