pub struct ParseStack { /* private fields */ }Expand description
A stack of parse frames for debugging.
Implementations§
Source§impl ParseStack
impl ParseStack
pub fn new() -> Self
pub fn push(&mut self, frame: ParseFrame)
pub fn pop(&mut self) -> Option<ParseFrame>
pub fn depth(&self) -> usize
pub fn current_rule(&self) -> Option<&str>
pub fn in_type(&self) -> bool
pub fn in_pattern(&self) -> bool
pub fn rules_string(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParseStack
impl RefUnwindSafe for ParseStack
impl Send for ParseStack
impl Sync for ParseStack
impl Unpin for ParseStack
impl UnsafeUnpin for ParseStack
impl UnwindSafe for ParseStack
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