[][src]Trait spaces::Union

pub trait Union<S = Self> {
    fn union(self, other: &S) -> Self;

    fn union_many(self, other_spaces: &[S]) -> Self
    where
        Self: Sized
, { ... } }

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

fn union(self, other: &S) -> Self

Return the smallest space enclosing self and other of type Self.

Loading content...

Provided methods

fn union_many(self, other_spaces: &[S]) -> Self where
    Self: Sized

Return the smallest space enclosing self and all other_spaces of type Self.

Loading content...

Implementors

impl Union<Binary> for Binary[src]

impl Union<Integers> for Integers[src]

impl Union<Naturals> for Naturals[src]

impl Union<NonNegativeIntegers> for NonNegativeIntegers[src]

impl Union<NonZeroIntegers> for NonZeroIntegers[src]

impl Union<Ordinal> for Ordinal[src]

impl Union<NonNegativeReals> for NonNegativeReals[src]

impl Union<PositiveReals> for PositiveReals[src]

impl Union<Reals> for Reals[src]

impl<D1: Union, D2: Union> Union<PairSpace<D1, D2>> for PairSpace<D1, D2>[src]

impl<D: Space + Union + Clone> Union<ProductSpace<D>> for ProductSpace<D>[src]

impl<D: Union + Clone> Union<TwoSpace<D>> for TwoSpace<D>[src]

impl<T: Clone + PartialOrd> Union<Interval<T>> for Interval<T>[src]

Loading content...