[][src]Struct antlr_rust::interval_set::Interval

pub struct Interval {
    pub a: isize,
    pub b: isize,
}

Fields

a: isizeb: isize

Methods

impl Interval[src]

pub fn startsBeforeDisjoint(&self, other: &Interval) -> bool[src]

Does self start completely before other? Disjoint

pub fn startsBeforeNonDisjoint(&self, other: &Interval) -> bool[src]

Does self start at or before other? Nondisjoint

pub fn startsAfter(&self, other: &Interval) -> bool[src]

Does self.a start after other.b? May or may not be disjoint

pub fn startsAfterDisjoint(&self, other: &Interval) -> bool[src]

Does self start completely after other? Disjoint

pub fn startsAfterNonDisjoint(&self, other: &Interval) -> bool[src]

Does self start after other? NonDisjoint

pub fn disjoint(&self, other: &Interval) -> bool[src]

Are both ranges disjoint? I.e., no overlap?

pub fn adjacent(&self, other: &Interval) -> bool[src]

Are two intervals adjacent such as 0..41 and 42..42?

Trait Implementations

impl Clone for Interval[src]

impl Copy for Interval[src]

impl Debug for Interval[src]

impl Eq for Interval[src]

impl PartialEq<Interval> for Interval[src]

impl StructuralEq for Interval[src]

impl StructuralPartialEq for Interval[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.