pub trait Float:
Numeric
+ FloatOps
+ ScalarNeg
+ ScalarExp
+ ScalarLog
+ ScalarLog1p
+ ScalarExpm1
+ ScalarCos
+ ScalarSin
+ ScalarTan
+ ScalarTanh
+ ScalarSinh
+ ScalarCosh
+ ScalarArcCos
+ ScalarArcSin
+ ScalarArcTan
+ ScalarArcSinh
+ ScalarArcCosh
+ ScalarArcTanh
+ ScalarDegrees
+ ScalarRadians
+ ScalarArcTan2
+ ScalarPowf
+ Powi<i32>
+ ScalarHypot
+ ScalarRhypot
+ ScalarSqrt
+ ScalarInverseSqrt
+ ScalarRound
+ ScalarFloor
+ ScalarCeil
+ ScalarTrunc
+ ScalarErf
+ ScalarRecip
+ ScalarMagnitude
+ Normalize
+ ScalarDot
+ IsNan
+ IsInf
+ Into<Self::ExpandType>
+ Neg<Output = Self>
+ PartialOrd
+ PartialEq {
const DIGITS: u32;
const EPSILON: Self;
const INFINITY: Self;
const MANTISSA_DIGITS: u32;
const MAX_10_EXP: i32;
const MAX_EXP: i32;
const MIN_10_EXP: i32;
const MIN_EXP: i32;
const MIN_POSITIVE: Self;
const NAN: Self;
const NEG_INFINITY: Self;
const RADIX: u32;
// Required method
fn new(val: f32) -> Self;
// Provided method
fn __expand_new(scope: &Scope, val: f32) -> <Self as CubeType>::ExpandType { ... }
}Expand description
Floating point numbers. Used as input in float kernels
Required Associated Constants§
const DIGITS: u32
const EPSILON: Self
const INFINITY: Self
const MANTISSA_DIGITS: u32
const MAX_10_EXP: i32
const MAX_EXP: i32
const MIN_10_EXP: i32
const MIN_EXP: i32
const MIN_POSITIVE: Self
const NAN: Self
const NEG_INFINITY: Self
const RADIX: u32
Required Methods§
Provided Methods§
fn __expand_new(scope: &Scope, val: f32) -> <Self as CubeType>::ExpandType
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".