Struct LineColumn
struct LineColumn { ... }
Represents the 1-based line and column positions of a given character.
Fields
line: usizeThe 1-based line number of the character.
column: usizeThe 1-based column number of the character.
Implementations
impl LineColumn
fn column_add(self: &Self, offset: isize) -> LineColumnReturn a new LineColumn based on this one, with the column adjusted by offset.
impl Clone for LineColumn
fn clone(self: &Self) -> LineColumn
impl Copy for LineColumn
impl Debug for LineColumn
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Default for LineColumn
fn default() -> LineColumn
impl Eq for LineColumn
impl Freeze for LineColumn
impl From for LineColumn
fn from(lc: (usize, usize)) -> LineColumn
impl Ord for LineColumn
fn cmp(self: &Self, other: &LineColumn) -> $crate::cmp::Ordering
impl PartialEq for LineColumn
fn eq(self: &Self, other: &LineColumn) -> bool
impl PartialOrd for LineColumn
fn partial_cmp(self: &Self, other: &LineColumn) -> $crate::option::Option<$crate::cmp::Ordering>
impl RefUnwindSafe for LineColumn
impl Send for LineColumn
impl StructuralPartialEq for LineColumn
impl Sync for LineColumn
impl Unpin for LineColumn
impl UnwindSafe for LineColumn
impl<T> Any for LineColumn
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for LineColumn
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for LineColumn
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for LineColumn
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for LineColumn
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for LineColumn
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for LineColumn
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for LineColumn
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for LineColumn
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>