pub trait Float:
Numeric
+ Exp
+ Log
+ Log1p
+ Cos
+ Sin
+ Tanh
+ Powf
+ Sqrt
+ Round
+ Floor
+ Ceil
+ Erf
+ Recip
+ Magnitude
+ Normalize
+ Dot
+ Into<Self::ExpandType>
+ Neg<Output = Self>
+ Add<Output = Self>
+ Sub<Output = Self>
+ Mul<Output = Self>
+ Div<Output = Self>
+ AddAssign
+ SubAssign
+ MulAssign
+ DivAssign
+ 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: &mut 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: &mut 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", so this trait is not object safe.