Struct proc_macro_error::SpanRange [−][src]
Fields
first: Spanlast: SpanImplementations
Create a range with the first and last spans being the same.
Construct span range from a TokenStream. This method always preserves all the
range.
Note
If the stream is empty, the result is SpanRange::call_site(). If the stream
consists of only one TokenTree, the result is SpanRange::single_span(tt.span())
that doesn’t lose anything.
Join two span ranges. The resulting range will start at self.first and end at
other.last.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SpanRange
impl UnwindSafe for SpanRange
Blanket Implementations
Mutably borrows from an owned value. Read more