pub trait Operations: Sized {
type Output;
// Provided methods
fn empty(&self) -> bool { ... }
fn atomic(&self) -> bool { ... }
fn intersection(self, _other: Self::Output) -> Self::Output { ... }
fn union(self, _other: Self::Output) -> Self::Output { ... }
}
Expand description
Operations defined on interval-like things.
Required Associated Types§
Provided Methods§
Sourcefn intersection(self, _other: Self::Output) -> Self::Output
fn intersection(self, _other: Self::Output) -> Self::Output
Returns the intersection of two intervals, shorthand for interval & interval
.
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.