pub struct Dfa { /* private fields */ }Implementations§
Source§impl Dfa
impl Dfa
pub const fn new(atn_start_state: usize, decision: usize) -> Self
pub const fn decision(&self) -> usize
pub const fn atn_start_state(&self) -> usize
pub fn states(&self) -> &[DfaState]
Sourcepub fn add_state(&mut self, state: DfaState) -> usize
pub fn add_state(&mut self, state: DfaState) -> usize
Inserts a DFA state or returns the existing state number for an equivalent ATN configuration set.
pub fn state_mut(&mut self, state_number: usize) -> Option<&mut DfaState>
Trait Implementations§
impl Eq for Dfa
impl StructuralPartialEq for Dfa
Auto Trait Implementations§
impl Freeze for Dfa
impl RefUnwindSafe for Dfa
impl !Send for Dfa
impl !Sync for Dfa
impl Unpin for Dfa
impl UnsafeUnpin for Dfa
impl UnwindSafe for Dfa
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more