Trait Real
pub trait Real:
Float
+ FloatConst
+ NumAssign
+ Send
+ Sync
+ Debug
+ 'static {
// Required methods
fn lit(x: f64) -> Self;
fn to_f64_lossless(self) -> f64;
}Expand description
Floating-point scalar accepted by the kernel (f32 or f64).
Required Methods§
fn to_f64_lossless(self) -> f64
fn to_f64_lossless(self) -> f64
Widens this value to f64.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".