Struct syntex_syntax::codemap::MultiSpan
[−]
[src]
pub struct MultiSpan { pub spans: Vec<Span>, }
Spans are converted to MultiSpans just before error reporting, either automatically, generated by line grouping, or manually constructed. In the latter case care should be taken to ensure that spans are ordered, disjoint, and point into the same FileMap.
Fields
spans: Vec<Span>
Methods
impl MultiSpan
[src]
fn new() -> MultiSpan
fn to_span_bounds(&self) -> Span
fn push_merge(&mut self, sp: Span)
Merges or inserts the given span into itself.
fn push_trim(&mut self, sp: Span)
Inserts the given span into itself, for use with end_highlight_lines
.
Trait Implementations
impl Clone for MultiSpan
[src]
fn clone(&self) -> MultiSpan
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more