pub struct LineColumn {
pub line: usize,
pub column: usize,
}Expand description
A place in a document’s text, as a person counts it: a 1-based line, and a 1-based column in Unicode scalar values.
Fields§
§line: usizeThe 1-based line.
column: usizeThe 1-based column, counted in Unicode scalar values.
Trait Implementations§
Source§impl Clone for LineColumn
impl Clone for LineColumn
impl Copy for LineColumn
Source§impl Debug for LineColumn
impl Debug for LineColumn
Source§impl Display for LineColumn
Writes line 2, column 7.
impl Display for LineColumn
Writes line 2, column 7.
impl Eq for LineColumn
Source§impl Hash for LineColumn
impl Hash for LineColumn
Source§impl Ord for LineColumn
impl Ord for LineColumn
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 PartialEq for LineColumn
impl PartialEq for LineColumn
Source§impl PartialOrd for LineColumn
impl PartialOrd for LineColumn
impl StructuralPartialEq for LineColumn
Auto Trait Implementations§
impl Freeze for LineColumn
impl RefUnwindSafe for LineColumn
impl Send for LineColumn
impl Sync for LineColumn
impl Unpin for LineColumn
impl UnsafeUnpin for LineColumn
impl UnwindSafe for LineColumn
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