pub trait Union<S = Self> {
// Required method
fn union(self, other: &S) -> Self;
// Provided method
fn union_many(self, other_spaces: &[S]) -> Self
where Self: Sized { ... }
}
Expand description
Trait for types that can be combined in the form of a union.
The union of a collection of sets is the set that contains all elements in the collection.
Required Methods§
Provided Methods§
Sourcefn union_many(self, other_spaces: &[S]) -> Selfwhere
Self: Sized,
fn union_many(self, other_spaces: &[S]) -> Selfwhere
Self: Sized,
Return a 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.