Struct proc_macro::LineColumn
source · [−]Expand description
A line-column pair representing the start or end of a Span.
Fields
line: usizeThe 1-indexed line in the source file on which the span starts or ends (inclusive).
column: usizeThe 1-indexed column (number of bytes in UTF-8 encoding) in the source file on which the span starts or ends (inclusive).
Trait Implementations
impl Clone for LineColumn
source
impl Clone for LineColumn
sourcefn clone(&self) -> LineColumn
source
fn clone(&self) -> LineColumn
sourceReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0 · source
fn clone_from(&mut self, source: &Self)
1.0.0 · sourcePerforms copy-assignment from source. Read more
impl Debug for LineColumn
source
impl Debug for LineColumn
sourceimpl Ord for LineColumn
source
impl Ord for LineColumn
sourceimpl PartialEq<LineColumn> for LineColumn
source
impl PartialEq<LineColumn> for LineColumn
sourcefn eq(&self, other: &LineColumn) -> bool
source
fn eq(&self, other: &LineColumn) -> bool
sourceThis method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &LineColumn) -> bool
source
fn ne(&self, other: &LineColumn) -> bool
sourceThis method tests for !=.
impl PartialOrd<LineColumn> for LineColumn
source
impl PartialOrd<LineColumn> for LineColumn
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
source
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
sourceThis method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0 · source
fn lt(&self, other: &Rhs) -> bool
1.0.0 · sourceThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0 · source
fn le(&self, other: &Rhs) -> bool
1.0.0 · sourceThis method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for LineColumn
sourceimpl Eq for LineColumn
sourceimpl !Send for LineColumn
sourceimpl StructuralEq for LineColumn
sourceimpl StructuralPartialEq for LineColumn
sourceimpl !Sync for LineColumn
sourceAuto Trait Implementations
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
source
impl<T> BorrowMut<T> for T where
T: ?Sized,
sourcefn borrow_mut(&mut self) -> &mut T
const: unstable · source
fn borrow_mut(&mut self) -> &mut T
const: unstable · sourceMutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
source
impl<T> ToOwned for T where
T: Clone,
sourcetype Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
source
fn clone_into(&self, target: &mut T)
sourceUses borrowed data to replace owned data, usually by cloning. Read more