Intersection

Trait Intersection 

Source
pub trait Intersection<Rhs> {
    type Output;

    // Required method
    fn intersection(&self, other: &Rhs) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn intersection(&self, other: &Rhs) -> Self::Output

Returns the set intersection of self and other.

Implementations on Foreign Types§

Source§

impl<T: Copy + Ord> Intersection<Range<T>> for Range<T>

Source§

type Output = Option<Range<T>>

Source§

fn intersection(&self, other: &Range<T>) -> Self::Output

Source§

impl<T: Copy + Ord> Intersection<RangeSet<T>> for Range<T>

Source§

type Output = RangeSet<T>

Source§

fn intersection(&self, other: &RangeSet<T>) -> Self::Output

Implementors§