[][src]Struct antlr_rust::dfa_state::DFAState

pub struct DFAState {
    pub state_number: usize,
    pub configs: Box<ATNConfigSet>,
    pub edges: Vec<DFAStateRef>,
    pub is_accept_state: bool,
    pub prediction: isize,
    pub requires_full_context: bool,
    pub predicates: Vec<PredPrediction>,
    // some fields omitted
}

Fields

state_number: usize

Number of this state in corresponding DFA

configs: Box<ATNConfigSet>edges: Vec<DFAStateRef>
  • 0 => no edge
  • usize::MAX => error edge
  • _ => actual edge
is_accept_state: boolprediction: isizerequires_full_context: boolpredicates: Vec<PredPrediction>

Implementations

impl DFAState[src]

pub fn default_hash(&self) -> u64[src]

pub fn new_dfastate(stateNumber: usize, configs: Box<ATNConfigSet>) -> DFAState[src]

Trait Implementations

impl Eq for DFAState[src]

impl Hash for DFAState[src]

impl PartialEq<DFAState> for DFAState[src]

impl StructuralEq for DFAState[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, 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.