pub struct LineCol {
pub line: u32,
pub col: u32,
}Expand description
A position in source code: 0-based line and 0-based UTF-8 column (byte offset within the line). Multi-byte characters occupy multiple columns.
Fields§
§line: u320-based line number.
col: u32UTF-8 byte offset within the line (not UTF-16 code units).
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