pub trait Approx {
type Approximation;
fn approx(&self, tolerance: Tolerance) -> Self::Approximation;
}Expand description
Approximate an object
Required Associated Types
sourcetype Approximation
type Approximation
The approximation of the object
Required Methods
sourcefn approx(&self, tolerance: Tolerance) -> Self::Approximation
fn approx(&self, tolerance: Tolerance) -> Self::Approximation
Approximate the object
tolerance defines how far the approximation is allowed to deviate from
the actual object.