pub struct NFA<T> {
pub states: Vec<State<T>>,
pub start_capture: Vec<bool>,
pub end_capture: Vec<bool>,
pub acceptance: Vec<bool>,
}
Fields§
§states: Vec<State<T>>
§start_capture: Vec<bool>
§end_capture: Vec<bool>
§acceptance: Vec<bool>
Implementations§
Source§impl<T> NFA<T>
impl<T> NFA<T>
pub fn put(&mut self, index: usize, chars: CharacterClass) -> usize
pub fn get_mut(&mut self, index: usize) -> &mut State<T>
pub fn new_state(&mut self, chars: CharacterClass) -> usize
pub fn get(&self, index: usize) -> &State<T>
pub fn acceptance(&mut self, index: usize)
pub fn metadata(&mut self, index: usize, metadata: T)
pub fn start_capture(&mut self, index: usize)
pub fn end_capture(&mut self, index: usize)
pub fn put_state(&mut self, index: usize, child: usize)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for NFA<T>
impl<T> RefUnwindSafe for NFA<T>where
T: RefUnwindSafe,
impl<T> Send for NFA<T>where
T: Send,
impl<T> Sync for NFA<T>where
T: Sync,
impl<T> Unpin for NFA<T>where
T: Unpin,
impl<T> UnwindSafe for NFA<T>where
T: UnwindSafe,
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