Struct LineColumn
pub struct LineColumn { pub line: usize, pub column: usize }
A line-column pair representing the start or end of a Span.
This type is semver exempt and not exposed by default.
Fields
line: usizeThe 1-indexed line in the source file on which the span starts or ends (inclusive).
column: usizeThe 0-indexed column (in UTF-8 characters) in the source file on which the span starts or ends (inclusive).
Trait Implementations
impl Clone for LineColumn
fn clone(&self) -> LineColumn
impl Copy for LineColumn
impl Debug for LineColumn
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for LineColumn
impl Hash for LineColumn
fn hash<__H: Hasher>(&self, state: &mut __H)
impl Ord for LineColumn
fn cmp(&self, other: &Self) -> Ordering
impl PartialEq for LineColumn
fn eq(&self, other: &LineColumn) -> bool
impl PartialOrd for LineColumn
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
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
impl<T> Any for LineColumn
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for LineColumn
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for LineColumn
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for LineColumn
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for LineColumn
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for LineColumn
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for LineColumn
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for LineColumn
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for LineColumn
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>