pub struct ParserState {
pub line_number: i32,
}
Expand description
The current state of the given Parser
.
Fields§
§line_number: i32
The current line the parser is on.
We parse line by line to enforce whitespace. This means we just need to track what line we are currently on.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParserState
impl RefUnwindSafe for ParserState
impl Send for ParserState
impl Sync for ParserState
impl Unpin for ParserState
impl UnwindSafe for ParserState
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