pub struct LinePosition {
pub line: usize,
pub column: usize,
}Expand description
A 1-based line and column, derived from a byte offset by LineIndex.
Fields§
§line: usize1-based line number.
column: usize1-based column number (counted in bytes from the line start).
Trait Implementations§
Source§impl Clone for LinePosition
impl Clone for LinePosition
Source§fn clone(&self) -> LinePosition
fn clone(&self) -> LinePosition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LinePosition
Source§impl Debug for LinePosition
impl Debug for LinePosition
impl Eq for LinePosition
Source§impl PartialEq for LinePosition
impl PartialEq for LinePosition
Source§fn eq(&self, other: &LinePosition) -> bool
fn eq(&self, other: &LinePosition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LinePosition
Auto Trait Implementations§
impl Freeze for LinePosition
impl RefUnwindSafe for LinePosition
impl Send for LinePosition
impl Sync for LinePosition
impl Unpin for LinePosition
impl UnsafeUnpin for LinePosition
impl UnwindSafe for LinePosition
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