Trait wiwi::num::FromF64Lossless
source · pub trait FromF64Lossless: Base {
// Required method
fn from_f64(val: f64) -> Self;
}
Expand description
Lossless conversion from
f64
That is, this trait is implemented for a number type, when you can
convert a
f64
to the number type while guaranteeing absolutely no losses for all
possible values. This is not the same as an as
cast!
Required Methods§
Object Safety§
This trait is not object safe.