/// Trait for quantizing and dequantizing values.
pubtraitQuantize{/// The type to store the quantized value in.
typeType;/// Quantize a floating point value.
fnquantize(value:f64)->Self::Type;/// Restore the floating point value from a quantized value.
fndequantize(quantized:Self::Type)->f64;/// Calculates the maximum quantization error.
/// The absolute difference between the quantized and original value will not be greater than this,
/// unless it has been clamped because it was out of range.
fnmax_error()->f64;}