pub struct DFA {
pub states: Vec<bool>,
pub transitions: HashMap<(u64, char), u64>,
}Fields§
§states: Vec<bool>§transitions: HashMap<(u64, char), u64>Implementations§
Source§impl DFA
impl DFA
pub fn accepts(self: &DFA, s: &str) -> bool
pub fn intersect(self: &DFA, right: &DFA) -> DFA
pub fn union(self: &DFA, right: &DFA) -> DFA
pub fn complement(self: &DFA) -> DFA
pub fn is_empty(self: &DFA) -> bool
pub fn is_subset_of(self: &DFA, right: &DFA) -> bool
pub fn concatenate(self: &DFA, _right: &DFA) -> 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 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