[][src]Trait smth::Float

pub trait Float: Signed + From<f32> {
    type Bits;

    const HALF: Self;
    const RADIX: u32;
    const MANTISSA_DIGITS: u32;
    const DIGITS: u32;
    const EPSILON: Self;
    const MIN: Self;
    const MIN_POSITIVE: Self;
    const MAX: Self;
    const MIN_EXP: i32;
    const MAX_EXP: i32;
    const MIN_10_EXP: i32;
    const MAX_10_EXP: i32;
    const NAN: Self;
    const INFINITY: Self;
    const NEG_INFINITY: Self;

    fn floor(self) -> Self;
fn ceil(self) -> Self;
fn round(self) -> Self;
fn trunc(self) -> Self;
fn fract(self) -> Self;
fn copysign(self, other: Self) -> Self;
fn mul_add(self, a: Self, b: Self) -> Self;
fn div_euclid(self, other: Self) -> Self;
fn rem_euclid(self, other: Self) -> Self;
fn powi(self, pow: i32) -> Self;
fn powf(self, pow: 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 log10(self) -> Self;
fn log2(self) -> Self;
fn cbrt(self) -> Self;
fn hypot(self, other: 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 sin_cos(self) -> (Self, Self);
fn exp_m1(self) -> Self;
fn ln_1p(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 recip(self) -> Self;
fn to_radians(self) -> Self;
fn to_degrees(self) -> Self;
fn from_bits(bits: Self::Bits) -> Self;
fn to_bits(self) -> Self::Bits; }

Associated Types

type Bits

Loading content...

Associated Constants

const HALF: Self

const RADIX: u32

const MANTISSA_DIGITS: u32

const DIGITS: u32

const EPSILON: Self

const MIN: Self

const MIN_POSITIVE: Self

const MAX: Self

const MIN_EXP: i32

const MAX_EXP: i32

const MIN_10_EXP: i32

const MAX_10_EXP: i32

const NAN: Self

const INFINITY: Self

const NEG_INFINITY: Self

Loading content...

Required methods

fn floor(self) -> Self

fn ceil(self) -> Self

fn round(self) -> Self

fn trunc(self) -> Self

fn fract(self) -> Self

fn copysign(self, other: Self) -> Self

fn mul_add(self, a: Self, b: Self) -> Self

fn div_euclid(self, other: Self) -> Self

fn rem_euclid(self, other: Self) -> Self

fn powi(self, pow: i32) -> Self

fn powf(self, pow: 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 log10(self) -> Self

fn log2(self) -> Self

fn cbrt(self) -> Self

fn hypot(self, other: 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 sin_cos(self) -> (Self, Self)

fn exp_m1(self) -> Self

fn ln_1p(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 recip(self) -> Self

fn to_radians(self) -> Self

fn to_degrees(self) -> Self

fn from_bits(bits: Self::Bits) -> Self

fn to_bits(self) -> Self::Bits

Loading content...

Implementations on Foreign Types

impl Float for f32[src]

type Bits = u32

impl Float for f64[src]

type Bits = u64

Loading content...

Implementors

Loading content...