Trait number_traits::Float
[−]
[src]
pub trait Float: Signed { fn nan() -> Self; fn infinity() -> Self; fn neg_infinity() -> Self; fn neg_zero() -> Self; fn epsilon() -> Self; fn is_nan(&self) -> bool; fn is_infinite(&self) -> bool; fn is_finite(&self) -> bool; fn is_normal(&self) -> bool; fn classify(&self) -> FpCategory; fn trunc(&self) -> Self; fn fract(&self) -> Self; fn is_sign_positive(&self) -> bool; fn is_sign_negative(&self) -> bool; fn recip(&self) -> Self; fn powi(&self, n: i32) -> Self; fn powf(&self, n: &Self) -> Self; fn cbrt(&self) -> Self; fn hypot(&self, other: &Self) -> Self; fn integer_decode(&self) -> (u64, i16, i8); }
Required Methods
fn nan() -> Self
fn infinity() -> Self
fn neg_infinity() -> Self
fn neg_zero() -> Self
fn epsilon() -> Self
fn is_nan(&self) -> bool
fn is_infinite(&self) -> bool
fn is_finite(&self) -> bool
fn is_normal(&self) -> bool
fn classify(&self) -> FpCategory
fn trunc(&self) -> Self
fn fract(&self) -> Self
fn is_sign_positive(&self) -> bool
fn is_sign_negative(&self) -> bool
fn recip(&self) -> Self
fn powi(&self, n: i32) -> Self
fn powf(&self, n: &Self) -> Self
fn cbrt(&self) -> Self
fn hypot(&self, other: &Self) -> Self
fn integer_decode(&self) -> (u64, i16, i8)
Implementations on Foreign Types
impl<T> Float for Wrapping<T> where
T: Float,
Self: Signed,
[src]
T: Float,
Self: Signed,
fn nan() -> Self
[src]
fn infinity() -> Self
[src]
fn neg_infinity() -> Self
[src]
fn neg_zero() -> Self
[src]
fn epsilon() -> Self
[src]
fn is_nan(&self) -> bool
[src]
fn is_infinite(&self) -> bool
[src]
fn is_finite(&self) -> bool
[src]
fn is_normal(&self) -> bool
[src]
fn classify(&self) -> FpCategory
[src]
fn trunc(&self) -> Self
[src]
fn fract(&self) -> Self
[src]
fn is_sign_positive(&self) -> bool
[src]
fn is_sign_negative(&self) -> bool
[src]
fn recip(&self) -> Self
[src]
fn powi(&self, n: i32) -> Self
[src]
fn powf(&self, n: &Self) -> Self
[src]
fn cbrt(&self) -> Self
[src]
fn hypot(&self, other: &Self) -> Self
[src]
fn integer_decode(&self) -> (u64, i16, i8)
[src]
Implementors
impl Float for f32
impl Float for f64