[][src]Struct antlr_rust::interval_set::IntervalSet

pub struct IntervalSet {
    pub read_only: bool,
    // some fields omitted
}

Fields

read_only: bool

Methods

impl IntervalSet[src]

pub fn new() -> IntervalSet[src]

pub fn get_min(&self) -> Option<isize>[src]

pub fn add_one(&mut self, _v: isize)[src]

pub fn add_range(&mut self, l: isize, h: isize)[src]

pub fn add_interval(&mut self, added: Interval)[src]

pub fn complement(&self, start: isize, stop: isize) -> IntervalSet[src]

pub fn contains(&self, _item: isize) -> bool[src]

pub fn remove_one(&mut self, el: isize)[src]

pub fn to_token_string(&self, vocabulary: &dyn Vocabulary) -> String[src]

Trait Implementations

impl Clone for IntervalSet[src]

impl Debug for IntervalSet[src]

impl Eq for IntervalSet[src]

impl PartialEq<IntervalSet> for IntervalSet[src]

impl StructuralEq for IntervalSet[src]

impl StructuralPartialEq for IntervalSet[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.