pub struct F32(pub f32);
Tuple Fields§
§0: f32
Implementations§
source§impl F32
impl F32
pub fn abs(&self) -> Self
pub fn neg(&self) -> Self
pub fn ceil(&self) -> Self
pub fn floor(&self) -> Self
pub fn trunc(&self) -> Self
pub fn round(&self) -> Self
pub fn sqrt(&self) -> Self
pub fn min(&self, rhs: Self) -> Self
pub fn max(&self, rhs: Self) -> Self
pub fn copysign(&self, rhs: Self) -> Self
pub fn from_bits(other: u32) -> Self
pub fn is_nan(&self) -> bool
pub fn is_infinity(&self) -> bool
pub fn is_negative_infinity(&self) -> bool
pub fn as_i32(&self) -> i32
pub fn as_u32(&self) -> u32
pub fn as_i64(&self) -> i64
pub fn as_u64(&self) -> u64
pub fn as_f32(&self) -> F64
pub fn reinterpret_as_i32(&self) -> i32
Trait Implementations§
source§impl InteropValue for F32
impl InteropValue for F32
source§impl PartialEq for F32
impl PartialEq for F32
source§impl PartialOrd for F32
impl PartialOrd for F32
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 moreimpl Copy for F32
Auto Trait Implementations§
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