pub struct Dfa {
pub state_count: u32,
pub transitions: Vec<u32>,
pub start: u32,
pub accept: Vec<bool>,
}Expand description
Deterministic finite automaton with a dense transition table.
Fields§
§state_count: u32Total state count.
transitions: Vec<u32>Transitions laid out row-major: transitions[state * 256 + byte].
Values equal to INVALID_STATE mean “no transition.”
start: u32Start state id.
accept: Vec<bool>Accept-state bitmap.
Implementations§
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