Trait proc_macro::MultiSpan
source · pub trait MultiSpan {
fn into_spans(self) -> Vec<Span>;
}
🔬This is a nightly-only experimental API. (
proc_macro_diagnostic
#54140)Expand description
Trait implemented by types that can be converted into a set of Span
s.
Required Methods
sourcefn into_spans(self) -> Vec<Span>
fn into_spans(self) -> Vec<Span>
🔬This is a nightly-only experimental API. (
proc_macro_diagnostic
#54140)Converts self
into a Vec<Span>
.
Implementations on Foreign Types
sourceimpl MultiSpan for Vec<Span>
impl MultiSpan for Vec<Span>
sourcefn into_spans(self) -> Vec<Span>
fn into_spans(self) -> Vec<Span>
🔬This is a nightly-only experimental API. (
proc_macro_diagnostic
#54140)sourceimpl<'a> MultiSpan for &'a [Span]
impl<'a> MultiSpan for &'a [Span]
sourcefn into_spans(self) -> Vec<Span>
fn into_spans(self) -> Vec<Span>
🔬This is a nightly-only experimental API. (
proc_macro_diagnostic
#54140)