pub struct F32(/* private fields */);
Expand description
A pure software implementation of f32
.
Implementations§
Source§impl F32
impl F32
pub const fn from_native_f32(a: f32) -> Self
pub const fn to_native_f32(self) -> f32
pub const fn to_f64(self) -> F64
pub const fn from_f64(a: F64) -> Self
pub const fn to_u32(self) -> u32
pub const fn from_u32(a: u32) -> Self
pub const fn from_bits(a: u32) -> Self
pub const fn to_bits(self) -> u32
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 F32
impl AddAssign for F32
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moreSource§impl DivAssign for F32
impl DivAssign for F32
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/=
operation. Read moreSource§impl MulAssign for F32
impl MulAssign for F32
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*=
operation. Read moreSource§impl PartialOrd for F32
impl PartialOrd for F32
Source§impl SubAssign for F32
impl SubAssign for F32
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for F32
Auto Trait Implementations§
impl Freeze for F32
impl RefUnwindSafe for F32
impl Send for F32
impl Sync for F32
impl Unpin for F32
impl UnwindSafe for F32
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