pub struct Position {
pub line: usize,
pub column: usize,
pub offset: usize,
}Expand description
Represents a position where is the validator currently at.
Fields§
§line: usizeLine number, starting from `1``
column: usizeColumn number, starting from 0, 0 mean did read any character from this line
offset: usizeOffset from the beginning of the entire input, starting from 0
Trait Implementations§
impl Copy for Position
impl Eq for Position
impl StructuralPartialEq for Position
Auto Trait Implementations§
impl Freeze for Position
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnwindSafe for Position
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