Skip to main content

MultiSpan

Trait 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 implemented by types that can be converted into a set of Spans.

Required Methods§

Source

fn into_spans(self) -> Vec<Span>

🔬This is a nightly-only experimental API. (proc_macro_diagnostic #54140)
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).

Converts self into a Vec<Span>.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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)
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
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)
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).

Implementors§