Trait proc_macro::MultiSpan

source ·
pub trait MultiSpan {
    // Required method
    fn into_spans(self) -> Vec<Span>;
}
🔬This is a nightly-only experimental API. (proc_macro_diagnostic #54140)
Expand description

一个 trait 实现,可以转换为一组 Spans 的类型。

Required Methods§

source

fn into_spans(self) -> Vec<Span>

🔬This is a nightly-only experimental API. (proc_macro_diagnostic #54140)

self 转换为 Vec<Span>

Implementations on Foreign Types§

source§

impl MultiSpan for Vec<Span>

source§

fn into_spans(self) -> Vec<Span>

🔬This is a nightly-only experimental API. (proc_macro_diagnostic #54140)
source§

impl<'a> MultiSpan for &'a [Span]

source§

fn into_spans(self) -> Vec<Span>

🔬This is a nightly-only experimental API. (proc_macro_diagnostic #54140)

Implementors§