Trait Intersect

Source
pub trait Intersect<T>: Sized {
    type Output;

    // Required method
    fn intersect(&self, other: &Self) -> Option<Self::Output>;
}

Required Associated Types§

Required Methods§

Source

fn intersect(&self, other: &Self) -> Option<Self::Output>

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.

Implementations on Foreign Types§

Source§

impl<T> Intersect<Vec<T>> for Vec<T>
where T: Intersect<T, Output: PartialEq>,

Source§

type Output = Vec<<T as Intersect<T>>::Output>

Source§

fn intersect(&self, other: &Self) -> Option<Self::Output>

Implementors§

Source§

impl<T> Intersect<Range<T>> for Range<T>
where T: Clone + Ord,