[][src]Struct antlr_rust::dfa::DFA

pub struct DFA {
    pub atn_start_state: ATNStateRef,
    pub decision: isize,
    pub states: RwLock<Vec<DFAState>>,
    pub s0: RwLock<Option<DFAStateRef>>,
    // some fields omitted
}

Fields

atn_start_state: ATNStateRef

ATN state from which this DFA creation was started from

decision: isizestates: RwLock<Vec<DFAState>>

Set of all dfa states.

s0: RwLock<Option<DFAStateRef>>

Initial DFA state

Methods

impl DFA[src]

pub fn new(atn: Arc<ATN>, atn_start_state: ATNStateRef, decision: isize) -> DFA[src]

pub fn get_precedence_start_state(
    &self,
    _precedence: isize
) -> Option<DFAStateRef>
[src]

pub fn set_precedence_start_state(
    &self,
    precedence: isize,
    _start_state: DFAStateRef
)
[src]

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

pub fn set_precedence_dfa(&mut self, precedence_dfa: bool)[src]

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

pub fn to_lexer_string(&self) -> String[src]

Auto Trait Implementations

impl RefUnwindSafe for DFA

impl Send for DFA

impl Sync for DFA

impl Unpin for DFA

impl UnwindSafe for DFA

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, 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.