[−][src]Struct antlr_rust::interval_set::Interval
Fields
a: isize
b: 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
impl RefUnwindSafe for Interval
impl Send for Interval
impl Sync for Interval
impl Unpin for Interval
impl UnwindSafe for Interval
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,