[][src]Enum range_ext::intersect::Intersection

pub enum Intersection {
    Empty,
    Overlap,
    Full,
}

Intersection of two ranges from point of the first range

Variants

Empty

They have no common area

Overlap

They partially overlap

Full

One is fully within the other

Methods

impl Intersection[src]

pub fn is_any(&self) -> bool[src]

Test if there is any intersection ''' Intersection::Empty => false, Intersection::Overlap => true, Intersection::Full => true,

Trait Implementations

impl Debug for Intersection[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]