pub struct State { /* private fields */ }Implementations§
Source§impl State
impl State
pub fn with_length(length: usize) -> State
pub fn register_matcher<T: Display>( &mut self, name: T, matcher: Production, ) -> Result<()>
pub fn index(&self) -> usize
pub fn length(&self) -> usize
pub fn stack(&mut self) -> &mut Stack
pub fn tokens(&self) -> VecDeque<Token>
pub fn is_epsilon<T: Display + Debug>(&self, input: T) -> bool
pub fn has_epsilon<T: Display + Debug>(&self, input: T) -> bool
pub fn is_whitespace<T: Display + Debug>(&self, input: T) -> bool
pub fn has_whitespace<T: Display + Debug>(&self, input: T) -> bool
pub fn is_newline<T: Display + Debug>(&self, input: T) -> bool
pub fn has_newline<T: Display + Debug>(&self, input: T) -> bool
pub fn as_mut<'c>(&self) -> &'c mut State
pub fn position(&self) -> Position
pub fn matcher<T: Display>(&self, name: T) -> Result<Production>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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