pub struct Context {
pub txt: ParserRc<str>,
pub pos: usize,
}Expand description
Parser context
txt- input stringpos- current position in input string
Fields§
§txt: ParserRc<str>Current input string
pos: usizeCurrent position in input string
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Send for Context
impl !Sync for Context
impl Freeze for Context
impl RefUnwindSafe for Context
impl Unpin for Context
impl UnsafeUnpin for Context
impl UnwindSafe for Context
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