Struct rustc::mir::SourceInfo [] [src]

pub struct SourceInfo {
    pub span: Span,
    pub scope: VisibilityScope,
}
🔬 This is a nightly-only experimental API. (rustc_private)

Grouped information about the source code origin of a MIR entity. Intended to be inspected by diagnostics and debuginfo. Most passes can work with it as a whole, within a single function.

Fields

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

Source span for the AST pertaining to this MIR entity.

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

The lexical visibility scope, i.e. which bindings can be seen.

Trait Implementations

impl Copy for SourceInfo
[src]

impl Clone for SourceInfo
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for SourceInfo
[src]

Formats the value using the given formatter.

impl PartialEq for SourceInfo
[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 SourceInfo
[src]

impl Encodable for SourceInfo
[src]

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

deprecated in favor of rustc-serialize on crates.io

impl Decodable for SourceInfo
[src]

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

deprecated in favor of rustc-serialize on crates.io