Struct peg_runtime::str::LineCol
source · pub struct LineCol {
pub line: usize,
pub column: usize,
pub offset: usize,
}
Expand description
Line and column within a string
Fields§
§line: usize
Line (1-indexed)
column: usize
Column (1-indexed)
offset: usize
Byte offset from start of string (0-indexed)
Trait Implementations§
source§impl PartialEq for LineCol
impl PartialEq for LineCol
impl Copy for LineCol
impl Eq for LineCol
impl StructuralPartialEq for LineCol
Auto Trait Implementations§
impl Freeze for LineCol
impl RefUnwindSafe for LineCol
impl Send for LineCol
impl Sync for LineCol
impl Unpin for LineCol
impl UnwindSafe for LineCol
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