pub trait Real {
// Required method
fn from_f64(n: f64) -> Self;
}
Expand description
Numbers that belong to the real number set. It’s both a semantic marker and provides a constructor for number constants.
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.