Struct syntax_pos::MultiSpan [] [src]

pub struct MultiSpan { /* fields omitted */ }
🔬 This is a nightly-only experimental API. (rustc_private)

A collection of spans. Spans have two orthogonal attributes:

Methods

impl MultiSpan
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

🔬 This is a nightly-only experimental API. (rustc_private)

🔬 This is a nightly-only experimental API. (rustc_private)

🔬 This is a nightly-only experimental API. (rustc_private)

🔬 This is a nightly-only experimental API. (rustc_private)

Selects the first primary span (if any)

🔬 This is a nightly-only experimental API. (rustc_private)

Returns all primary spans.

🔬 This is a nightly-only experimental API. (rustc_private)

Replaces all occurances of one Span with another. Used to move Spans in areas that don't display well (like std macros). Returns true if replacements occurred.

🔬 This is a nightly-only experimental API. (rustc_private)

Returns the strings to highlight. We always ensure that there is an entry for each of the primary spans -- for each primary span P, if there is at least one label with span P, we return those labels (marked as primary). But otherwise we return SpanLabel instances with empty labels.

Trait Implementations

impl Clone for MultiSpan
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for MultiSpan
[src]

Formats the value using the given formatter.

impl Hash for MultiSpan
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl PartialEq for MultiSpan
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for MultiSpan
[src]

impl Encodable for MultiSpan
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

deprecated in favor of rustc-serialize on crates.io

impl Decodable for MultiSpan
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

deprecated in favor of rustc-serialize on crates.io

impl From<Span> for MultiSpan
[src]

Performs the conversion.