Struct nan_preserving_float::F32
[−]
[src]
pub struct F32(_);
Methods
impl F32
[src]
pub fn from_bits(other: u32) -> Self
[src]
pub fn to_bits(self) -> u32
[src]
pub fn from_float(fl: f32) -> Self
[src]
pub fn to_float(self) -> f32
[src]
pub fn is_nan(self) -> bool
[src]
pub fn abs(self) -> Self
[src]
pub fn fract(self) -> Self
[src]
pub fn min(self, other: Self) -> Self
[src]
pub fn max(self, other: Self) -> Self
[src]
Trait Implementations
impl Copy for F32
[src]
impl Clone for F32
[src]
fn clone(&self) -> F32
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Into<F32>> Add<T> for F32
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: T) -> Self
[src]
Performs the +
operation.
impl<T: Into<F32>> Sub<T> for F32
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: T) -> Self
[src]
Performs the -
operation.
impl<T: Into<F32>> Mul<T> for F32
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: T) -> Self
[src]
Performs the *
operation.
impl<T: Into<F32>> Div<T> for F32
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, other: T) -> Self
[src]
Performs the /
operation.
impl<T: Into<F32>> Rem<T> for F32
[src]
type Output = Self
The resulting type after applying the %
operator.
fn rem(self, other: T) -> Self
[src]
Performs the %
operation.
impl From<f32> for F32
[src]
impl From<F32> for f32
[src]
impl Neg for F32
[src]
type Output = Self
The resulting type after applying the -
operator.
fn neg(self) -> Self
[src]
Performs the unary -
operation.
impl<T: Into<F32> + Copy> PartialEq<T> for F32
[src]
fn eq(&self, other: &T) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<T: Into<F32> + Copy> PartialOrd<T> for F32
[src]
fn partial_cmp(&self, other: &T) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Debug for F32
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more