pub struct LineCol {
pub line: u32,
pub col: u32,
}Expand description
A 1-based line and column pair, for human-facing diagnostics.
Fields§
§line: u32§col: u321-based column counted in UTF-8 bytes from the start of the line.
Trait Implementations§
impl Copy for LineCol
impl Eq for LineCol
Source§impl Ord for LineCol
impl Ord for LineCol
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for LineCol
impl PartialOrd 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