Struct const_soft_float::soft_f32::SoftF32
source · #[repr(transparent)]pub struct SoftF32(pub f32);
Tuple Fields§
§0: f32
Implementations§
source§impl SoftF32
impl SoftF32
pub const fn from_f32(a: f32) -> Self
pub const fn to_f32(self) -> f32
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 SoftF32
impl AddAssign for SoftF32
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moresource§impl PartialEq for SoftF32
impl PartialEq for SoftF32
source§impl PartialOrd for SoftF32
impl PartialOrd for SoftF32
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 SubAssign for SoftF32
impl SubAssign for SoftF32
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for SoftF32
Auto Trait Implementations§
impl Freeze for SoftF32
impl RefUnwindSafe for SoftF32
impl Send for SoftF32
impl Sync for SoftF32
impl Unpin for SoftF32
impl UnwindSafe for SoftF32
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