Skip to main content

FloatLike

Trait FloatLike 

Source
pub trait FloatLike:
    Real
    + R
    + Default
    + Clone
    + PartialOrd
    + RealLike
    + for<'a> RefAdd<&'a Self, Output = Self>
    + RefAdd<Self, Output = Self>
    + for<'a> RefMul<&'a Self, Output = Self>
    + RefMul<Self, Output = Self>
    + for<'a> RefSub<&'a Self, Output = Self>
    + RefSub<Self, Output = Self>
    + for<'a> RefDiv<&'a Self, Output = Self>
    + RefDiv<Self, Output = Self>
    + for<'a> RefRem<&'a Self, Output = Self>
    + RefNeg<Output = Self>
    + RefZero
    + RefOne
    + PrecisionUpgradable
    + Serialize
    + Display
    + GenericEvaluatorFloat
    + Into<Float> {
Show 22 methods // Required methods fn PI(&self) -> Self; fn E(&self) -> Self; fn TAU(&self) -> Self; fn SQRT_2(&self) -> Self; fn SQRT_2_HALF(&self) -> Self; fn PIHALF(&self) -> Self; fn FRAC_1_PI(&self) -> Self; fn from_f64(x: f64) -> Self; fn into_f64(&self) -> f64; fn is_nan(&self) -> bool; fn is_infinite(&self) -> bool; fn floor(&self) -> Self; fn epsilon(&self) -> Self; fn rem_euclid(&self, rhs: &Self) -> Self; fn try_extract_externals_from_cache( externals: &Externals, ) -> Option<&TiVec<ExternalIndex, FourMomentum<F<Self>>>>; // Provided methods fn square(&self) -> Self { ... } fn powi(&self, n: i32) -> Self { ... } fn less_than_epsilon(&self) -> bool { ... } fn positive(&self) -> bool { ... } fn max_value(&self) -> Self { ... } fn min_value(&self) -> Self { ... } fn ln(&self) -> Self { ... }
}

Required Methods§

Source

fn PI(&self) -> Self

Source

fn E(&self) -> Self

Source

fn TAU(&self) -> Self

Source

fn SQRT_2(&self) -> Self

Source

fn SQRT_2_HALF(&self) -> Self

Source

fn PIHALF(&self) -> Self

Source

fn FRAC_1_PI(&self) -> Self

Source

fn from_f64(x: f64) -> Self

Source

fn into_f64(&self) -> f64

Source

fn is_nan(&self) -> bool

Source

fn is_infinite(&self) -> bool

Source

fn floor(&self) -> Self

Source

fn epsilon(&self) -> Self

Source

fn rem_euclid(&self, rhs: &Self) -> Self

Source

fn try_extract_externals_from_cache( externals: &Externals, ) -> Option<&TiVec<ExternalIndex, FourMomentum<F<Self>>>>

Provided Methods§

Source

fn square(&self) -> Self

Source

fn powi(&self, n: i32) -> Self

Source

fn less_than_epsilon(&self) -> bool

Source

fn positive(&self) -> bool

Source

fn max_value(&self) -> Self

Source

fn min_value(&self) -> Self

Source

fn ln(&self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl FloatLike for f64

Source§

fn PI(&self) -> Self

Source§

fn SQRT_2(&self) -> Self

Source§

fn SQRT_2_HALF(&self) -> Self

Source§

fn PIHALF(&self) -> Self

Source§

fn E(&self) -> Self

Source§

fn TAU(&self) -> Self

Source§

fn FRAC_1_PI(&self) -> Self

Source§

fn from_f64(x: f64) -> Self

Source§

fn into_f64(&self) -> f64

Source§

fn is_nan(&self) -> bool

Source§

fn is_infinite(&self) -> bool

Source§

fn floor(&self) -> Self

Source§

fn rem_euclid(&self, rhs: &Self) -> Self

Source§

fn try_extract_externals_from_cache( externals: &Externals, ) -> Option<&TiVec<ExternalIndex, FourMomentum<F<Self>>>>

Source§

fn epsilon(&self) -> Self

Implementors§