pub trait FromF64: Copy {
// Required methods
fn from_f64(val: f64) -> Self;
fn is_integral() -> bool;
}Expand description
Trait for converting from f64 with appropriate rounding behavior
Matches C++ Point
Required Methods§
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.