pub trait Quantize {
type Type;
// Required methods
fn quantize(value: f64) -> Self::Type;
fn dequantize(quantized: Self::Type) -> f64;
fn max_error() -> f64;
}Expand description
Trait for quantizing and dequantizing values.
Required Associated Types§
Required Methods§
Sourcefn dequantize(quantized: Self::Type) -> f64
fn dequantize(quantized: Self::Type) -> f64
Restore the floating point value from a quantized value.
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.