pub trait FloatScalarStorage: ScalarStoragewhere
Self::StorageType: Sized,{
const POWERS_OF_10: [Self::StorageType; 39];
}Expand description
Extension for floats.
Required Associated Constants§
Sourceconst POWERS_OF_10: [Self::StorageType; 39]
const POWERS_OF_10: [Self::StorageType; 39]
First 39 powers of ten.
Should be used as an alternative to powi, specifically when converting
decimals to floats since we want exact values.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".