Float

Trait Float 

Source
pub trait Float {
Show 36 methods // Required methods fn is_nan(&self) -> bool; fn is_infinite(&self) -> bool; fn is_finite(&self) -> bool; fn is_normal(&self) -> bool; fn is_subnormal(&self) -> bool; fn floor(&self) -> Self; fn ceil(&self) -> Self; fn round(&self) -> Self; fn trunc(&self) -> Self; fn fract(&self) -> Self; fn recip(&self) -> Self; fn pow(&self, n: &Self) -> Self; fn sqrt(&self) -> Self; fn exp(&self) -> Self; fn exp2(&self) -> Self; fn ln(&self) -> Self; fn log(&self, base: &Self) -> Self; fn log2(&self) -> Self; fn log10(&self) -> Self; fn cbrt(&self) -> Self; fn hypot(&self, n: &Self) -> Self; fn sin(&self) -> Self; fn cos(&self) -> Self; fn tan(&self) -> Self; fn asin(&self) -> Self; fn acos(&self) -> Self; fn atan(&self) -> Self; fn atan2(&self, n: &Self) -> Self; fn sinh(&self) -> Self; fn cosh(&self) -> Self; fn tanh(&self) -> Self; fn asinh(&self) -> Self; fn acosh(&self) -> Self; fn atanh(&self) -> Self; fn to_degrees(&self) -> Self; fn to_radians(&self) -> Self;
}

Required Methods§

Source

fn is_nan(&self) -> bool

Source

fn is_infinite(&self) -> bool

Source

fn is_finite(&self) -> bool

Source

fn is_normal(&self) -> bool

Source

fn is_subnormal(&self) -> bool

Source

fn floor(&self) -> Self

Source

fn ceil(&self) -> Self

Source

fn round(&self) -> Self

Source

fn trunc(&self) -> Self

Source

fn fract(&self) -> Self

Source

fn recip(&self) -> Self

Source

fn pow(&self, n: &Self) -> Self

Source

fn sqrt(&self) -> Self

Source

fn exp(&self) -> Self

Source

fn exp2(&self) -> Self

Source

fn ln(&self) -> Self

Source

fn log(&self, base: &Self) -> Self

Source

fn log2(&self) -> Self

Source

fn log10(&self) -> Self

Source

fn cbrt(&self) -> Self

Source

fn hypot(&self, n: &Self) -> Self

Source

fn sin(&self) -> Self

Source

fn cos(&self) -> Self

Source

fn tan(&self) -> Self

Source

fn asin(&self) -> Self

Source

fn acos(&self) -> Self

Source

fn atan(&self) -> Self

Source

fn atan2(&self, n: &Self) -> Self

Source

fn sinh(&self) -> Self

Source

fn cosh(&self) -> Self

Source

fn tanh(&self) -> Self

Source

fn asinh(&self) -> Self

Source

fn acosh(&self) -> Self

Source

fn atanh(&self) -> Self

Source

fn to_degrees(&self) -> Self

Source

fn to_radians(&self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§