pub trait Intersect<S = Self> {
fn intersect(self, other: &S) -> Self;
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
fn intersect_many(self, other_spaces: &[S]) -> Self where
Self: Sized,
fn intersect_many(self, other_spaces: &[S]) -> Self where
Self: Sized,
Return the smallest space enclosing self
and all other_spaces
of
type Self
.