pub struct LineCol {
pub line: u32,
pub column: u32,
}Expand description
A one-based line and column, for rendering only.
The column counts Unicode scalar values, not bytes, because it exists to place a caret under a character a reader can see.
Fields§
§line: u32The one-based line number.
column: u32The one-based column, in Unicode scalar values.
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for LineCol
impl PartialOrd for LineCol
impl StructuralPartialEq for LineCol
Auto Trait Implementations§
impl Forget for LineCol
impl Freeze for LineCol
impl Move 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