pub struct F64(/* private fields */);
Expand description
A pure software implementation of f64
.
Implementations§
Source§impl F64
impl F64
pub const fn from_native_f64(a: f64) -> Self
pub const fn to_native_f64(self) -> f64
pub const fn from_f32(a: F32) -> Self
pub const fn to_f32(self) -> F32
pub const fn from_i32(a: i32) -> Self
pub const fn to_i32(self) -> i32
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
pub const fn is_nan(self) -> bool
pub const fn max(self, other: Self) -> Self
pub const fn min(self, other: Self) -> Self
pub const fn exp(self) -> Self
pub const fn ln(self) -> Self
pub const fn is_sign_negative(self) -> bool
Trait Implementations§
Source§impl AddAssign for F64
impl AddAssign for F64
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moreSource§impl DivAssign for F64
impl DivAssign for F64
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/=
operation. Read moreSource§impl MulAssign for F64
impl MulAssign for F64
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*=
operation. Read moreSource§impl PartialOrd for F64
impl PartialOrd for F64
Source§impl SubAssign for F64
impl SubAssign for F64
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for F64
Auto Trait Implementations§
impl Freeze for F64
impl RefUnwindSafe for F64
impl Send for F64
impl Sync for F64
impl Unpin for F64
impl UnwindSafe for F64
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