pub trait MagmaApprox<O: Op>:
Sized
+ PartialEq
+ ApproxEq
+ Clone {
// Required method
fn approx(self, _: Self) -> Self;
// Provided method
fn ap(self, _: O, lhs: Self) -> Self { ... }
}
Expand description
Types that are approximately closed under a given operator.
a, b ∈ Self ⇒ ∃ c ≈ a ∘ b such that c ∈ Self
Required Methods§
Provided Methods§
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.