Struct source_map::LineColumnSpan
source · pub struct LineColumnSpan<T: StringEncoding> {
pub line_start: u32,
pub column_start: u32,
pub line_end: u32,
pub column_end: u32,
pub source: SourceId,
pub encoding: T,
}
Expand description
Zero based
Fields§
§line_start: u32
§column_start: u32
§line_end: u32
§column_end: u32
§source: SourceId
§encoding: T
Implementations§
source§impl<T: StringEncoding> LineColumnSpan<T>
impl<T: StringEncoding> LineColumnSpan<T>
pub fn into_scalar_span(self, fs: &impl FileSystem) -> SpanWithSource
Trait Implementations§
source§impl<T: Clone + StringEncoding> Clone for LineColumnSpan<T>
impl<T: Clone + StringEncoding> Clone for LineColumnSpan<T>
source§fn clone(&self) -> LineColumnSpan<T>
fn clone(&self) -> LineColumnSpan<T>
Returns a copy 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<T: Debug + StringEncoding> Debug for LineColumnSpan<T>
impl<T: Debug + StringEncoding> Debug for LineColumnSpan<T>
source§impl<T: PartialEq + StringEncoding> PartialEq for LineColumnSpan<T>
impl<T: PartialEq + StringEncoding> PartialEq for LineColumnSpan<T>
source§fn eq(&self, other: &LineColumnSpan<T>) -> bool
fn eq(&self, other: &LineColumnSpan<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Eq + StringEncoding> Eq for LineColumnSpan<T>
impl<T: StringEncoding> StructuralPartialEq for LineColumnSpan<T>
Auto Trait Implementations§
impl<T> Freeze for LineColumnSpan<T>where
T: Freeze,
impl<T> RefUnwindSafe for LineColumnSpan<T>where
T: RefUnwindSafe,
impl<T> Send for LineColumnSpan<T>where
T: Send,
impl<T> Sync for LineColumnSpan<T>where
T: Sync,
impl<T> Unpin for LineColumnSpan<T>where
T: Unpin,
impl<T> UnwindSafe for LineColumnSpan<T>where
T: UnwindSafe,
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