Struct source_map::Span [−][src]
pub struct Span {
pub line_start: usize,
pub column_start: usize,
pub line_end: usize,
pub column_end: usize,
pub source_id: SourceId,
}
Expand description
A start and end line and column. Also contains trace of original source
Fields
line_start: usize
column_start: usize
line_end: usize
column_end: usize
source_id: SourceId
Implementations
Returns whether the end of self
is the start of other
Returns a new Span
which starts at the start of self
a ends at the end of other
Returns whether self finishes on a line whether other starts Not commutative
Returns whether other fits inside of self Not commutative
Returns whether other fits inside of self Not Commutative
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Span
impl UnwindSafe for Span
Blanket Implementations
Mutably borrows from an owned value. Read more