pub trait ApproximationMethod {
const NAME: &'static str;
const SUPPORTS_INCREMENTAL: bool;
const HAS_ERROR_BOUNDS: bool;
const COMPLEXITY: ComplexityClass;
}Expand description
Phantom type to represent approximation methods
Required Associated Constants§
Sourceconst SUPPORTS_INCREMENTAL: bool
const SUPPORTS_INCREMENTAL: bool
Whether this method supports incremental updates
Sourceconst HAS_ERROR_BOUNDS: bool
const HAS_ERROR_BOUNDS: bool
Whether this method provides theoretical error bounds
Sourceconst COMPLEXITY: ComplexityClass
const COMPLEXITY: ComplexityClass
Computational complexity class
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.