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§
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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".