Struct LineColumn

struct LineColumn { ... }

A line-column pair representing the start or end of a Span.

This type is semver exempt and not exposed by default.

Fields

line: usize

The 1-indexed line in the source file on which the span starts or ends (inclusive).

column: usize

The 0-indexed column (in UTF-8 characters) in the source file on which the span starts or ends (inclusive).

Implementations

impl Clone for LineColumn

fn clone(self: &Self) -> LineColumn

impl Copy for LineColumn

impl Debug for LineColumn

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Eq for LineColumn

impl Freeze for LineColumn

impl Hash for LineColumn

fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)

impl Ord for LineColumn

fn cmp(self: &Self, other: &Self) -> Ordering

impl PartialEq for LineColumn

fn eq(self: &Self, other: &LineColumn) -> bool

impl PartialOrd for LineColumn

fn partial_cmp(self: &Self, other: &Self) -> Option<Ordering>

impl RefUnwindSafe for LineColumn

impl Send for LineColumn

impl StructuralPartialEq for LineColumn

impl Sync for LineColumn

impl Unpin for LineColumn

impl UnsafeUnpin 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) -> T

Returns the argument unchanged.

impl<T> ToOwned for LineColumn

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for LineColumn

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses 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>