pub trait Intersect<S = Self> {
// Required method
fn intersect(self, other: &S) -> Self;
// Provided method
fn intersect_many(self, other_spaces: &[S]) -> Self
where Self: Sized { ... }
}
Expand description
Trait for types that can be combined in the form of an intersection.
The intersection of a collection of sets is the set that contains only those elements present in each.
Required Methods§
Provided Methods§
Sourcefn intersect_many(self, other_spaces: &[S]) -> Selfwhere
Self: Sized,
fn intersect_many(self, other_spaces: &[S]) -> Selfwhere
Self: Sized,
Return the smallest space enclosing self
and all other_spaces
of
type Self
.
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.