pub struct Nfa {
pub state_count: u32,
pub edges: Vec<NfaEdge>,
pub start: NfaStateId,
pub accept: Vec<bool>,
}Expand description
Non-deterministic finite automaton in Thompson form.
Fields§
§state_count: u32Total state count; states are 0..state_count.
edges: Vec<NfaEdge>Edges including both byte-labelled and epsilon transitions.
start: NfaStateIdIndex of the start state. Always present for a well-formed NFA.
accept: Vec<bool>Accept-state bitmap.
Trait Implementations§
impl Eq for Nfa
impl StructuralPartialEq for Nfa
Auto Trait Implementations§
impl Freeze for Nfa
impl RefUnwindSafe for Nfa
impl Send for Nfa
impl Sync for Nfa
impl Unpin for Nfa
impl UnsafeUnpin for Nfa
impl UnwindSafe for Nfa
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