# Trait proc_macro::MultiSpan[−][src]

    pub trait MultiSpan {
        fn into_spans(self) -> Vec<Span>;
    }

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

Trait implemented by types that can be converted into a set of `Span`s.

## Required methods

### `fn into_spans(self) -> Vec<Span>`[src]

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

Converts `self` into a `Vec<Span>`.

Loading content...

## Implementations on Foreign Types

### `impl MultiSpan for Vec<Span>`[src]

#### `fn into_spans(self) -> Vec<Span>`[src]

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

### `impl<'a> MultiSpan for &'a [Span]`[src]

#### `fn into_spans(self) -> Vec<Span>`[src]

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

## Implementors

### `impl MultiSpan for Span`[src]

#### `fn into_spans(self) -> Vec<Span>`[src]

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