pub trait FloatToFloat<Flt>: Sized {
// Required method
#[doc(hidden)] fn cast(self) -> Flt;
}ⓘ This trait cannot be implemented outside
core::convert::num.🔬This is a nightly-only experimental API. (
float_conversions #159913)Expand description
Supporting trait for the inherent cast method converting between float types.
Typically doesn’t need to be used directly.
Required Methods§
#[doc(hidden)]fn cast(self) -> Flt
🔬This is a nightly-only experimental API. (
float_conversions #159913)Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".