Struct peg_runtime::str::LineCol
source · [−]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
impl Copy for LineCol
impl Eq for LineCol
impl StructuralEq for LineCol
impl StructuralPartialEq for LineCol
Auto Trait Implementations
impl RefUnwindSafe for LineCol
impl Send for LineCol
impl Sync for LineCol
impl Unpin for LineCol
impl UnwindSafe for LineCol
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more