pub struct NFA { /* private fields */ }
Expand description
The NFA
struct represents a non-deterministic finite automaton.
Implementations§
Source§impl NFA
impl NFA
Sourcepub fn set_to_nfa(
prefix_set: &HashSet<SetTerminal>,
suffix_set: &HashSet<SetTerminal>,
factors_set: &HashSet<SetTerminal>,
) -> Self
pub fn set_to_nfa( prefix_set: &HashSet<SetTerminal>, suffix_set: &HashSet<SetTerminal>, factors_set: &HashSet<SetTerminal>, ) -> Self
Converts the prefix, suffix and factors sets to a NFA.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NFA
impl RefUnwindSafe for NFA
impl Send for NFA
impl Sync for NFA
impl Unpin 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