pub trait ConvertValue<IDst, const FRAC_DST: usize> {
// Required method
fn convert_value(self) -> Value<IDst, FRAC_DST>;
}Expand description
A trait for performing precision-preserving scaling and conversion between raw values of different fixed-point formats.
Required Methods§
Sourcefn convert_value(self) -> Value<IDst, FRAC_DST>
fn convert_value(self) -> Value<IDst, FRAC_DST>
Converts self to a Value of another fixed-point format.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".