pub struct LineColumn {
pub line: usize,
pub column: usize,
}Available on crate feature
span-locations only.Expand description
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§
Source§impl Clone for LineColumn
Available on span_locations only.
impl Clone for LineColumn
Available on
span_locations only.Source§fn clone(&self) -> LineColumn
fn clone(&self) -> LineColumn
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LineColumn
Available on span_locations only.
impl Debug for LineColumn
Available on
span_locations only.Source§impl Hash for LineColumn
Available on span_locations only.
impl Hash for LineColumn
Available on
span_locations only.Source§impl Ord for LineColumn
Available on span_locations only.
impl Ord for LineColumn
Available on
span_locations only.Source§impl PartialEq for LineColumn
Available on span_locations only.
impl PartialEq for LineColumn
Available on
span_locations only.Source§impl PartialOrd for LineColumn
Available on span_locations only.
impl PartialOrd for LineColumn
Available on
span_locations only.impl Copy for LineColumn
Available on
span_locations only.impl Eq for LineColumn
Available on
span_locations only.impl StructuralPartialEq for LineColumn
Available on
span_locations only.Auto Trait Implementations§
impl Freeze for LineColumn
impl RefUnwindSafe for LineColumn
impl Send for LineColumn
impl Sync for LineColumn
impl Unpin for LineColumn
impl UnwindSafe for LineColumn
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