pub trait IntoFloat: IntAsScalar {
type F;
// Required method
fn into_float_with_exponent(self, exponent: i32) -> Self::F;
}Required Associated Types§
Required Methods§
Sourcefn into_float_with_exponent(self, exponent: i32) -> Self::F
fn into_float_with_exponent(self, exponent: i32) -> Self::F
Helper method to combine the fraction and a constant exponent into a float.
Only the least significant bits of self may be set, 23 for f32 and
52 for f64.
The resulting value will fall in a range that depends on the exponent.
As an example the range with exponent 0 will be
[20..21), which is [1..2).
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.