pub trait Approx {
type Approximation;
type Params;
fn approx(
&self,
tolerance: Tolerance,
params: Self::Params
) -> 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,
params: Self::Params
) -> Self::Approximation
fn approx(
&self,
tolerance: Tolerance,
params: Self::Params
) -> Self::Approximation
Approximate the object
tolerance defines how far the approximation is allowed to deviate from
the actual object.