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
span: Span
🔬 This is a nightly-only experimental API. (
rustc_private)Source span for the AST pertaining to this MIR entity.
scope: VisibilityScope
🔬 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]
fn clone(&self) -> SourceInfo
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Debug for SourceInfo[src]
impl PartialEq for SourceInfo[src]
fn eq(&self, __arg_0: &SourceInfo) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &SourceInfo) -> bool
This method tests for !=.
impl Eq for SourceInfo[src]
impl Encodable for SourceInfo[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
🔬 This is a nightly-only experimental API. (rustc_private)
deprecated in favor of rustc-serialize on crates.io
impl Decodable for SourceInfo[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<SourceInfo, __D::Error>
🔬 This is a nightly-only experimental API. (rustc_private)
deprecated in favor of rustc-serialize on crates.io