pub struct LineColPos { /* private fields */ }
Expand description
Describes a line and column position in some source string.
This is both 0 indexed, so the first line is 0 and the first col on a line is 0.
Implementations§
Source§impl LineColPos
impl LineColPos
Trait Implementations§
Source§impl Clone for LineColPos
impl Clone for LineColPos
Source§fn clone(&self) -> LineColPos
fn clone(&self) -> LineColPos
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LineColPos
impl Debug for LineColPos
Source§impl Ord for LineColPos
impl Ord for LineColPos
Source§fn cmp(&self, other: &LineColPos) -> Ordering
fn cmp(&self, other: &LineColPos) -> Ordering
1.21.0 · 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 PartialEq for LineColPos
impl PartialEq for LineColPos
Source§impl PartialOrd for LineColPos
impl PartialOrd for LineColPos
impl Copy for LineColPos
impl Eq for LineColPos
impl StructuralPartialEq for LineColPos
Auto Trait Implementations§
impl Freeze for LineColPos
impl RefUnwindSafe for LineColPos
impl Send for LineColPos
impl Sync for LineColPos
impl Unpin for LineColPos
impl UnwindSafe for LineColPos
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