pub struct LineCol {
pub line: usize,
pub col: usize,
}Expand description
A (line, col) pair — both 0-based, with col measured in bytes
relative to the start of the line.
Fields§
§line: usize0-based line number.
col: usize0-based column as a byte offset from the start of the line.
Trait Implementations§
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 UnsafeUnpin 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