pub struct LineCol(pub usize, pub usize);Expand description
LineCol(line, col)
Tuple Fields§
§0: usize1-indexed line.
1: usize1-indexed column.
Implementations§
Trait Implementations§
Source§impl From<LineColByte> for LineCol
impl From<LineColByte> for LineCol
Source§fn from(pos: LineColByte) -> Self
fn from(pos: LineColByte) -> Self
Converts to this type from the input type.
Source§impl From<LineColByteRange> for LineCol
impl From<LineColByteRange> for LineCol
Source§fn from(pos: LineColByteRange) -> Self
fn from(pos: LineColByteRange) -> Self
Converts to this type from the input type.
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