pub trait FloatExt:
AddAssign
+ BurnElement
+ ConstOne
+ ConstZero
+ FloatTrait
+ FromPrimitive {
type Precision: PrecisionSettings;
// Required method
fn from_usize(x: usize) -> Self;
}
Expand description
Floating point types.
Required Associated Types§
Required Methods§
Sourcefn from_usize(x: usize) -> Self
fn from_usize(x: usize) -> Self
Convert a usize to a floating point number
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.