Struct rustc_typeck::middle::cstore::ExternCrate [] [src]

pub struct ExternCrate {
    pub def_id: DefId,
    pub span: Span,
    pub direct: bool,
    pub path_len: usize,
}
🔬 This is a nightly-only experimental API. (rustc_private)

Fields

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

def_id of an extern crate in the current crate that caused this crate to be loaded; note that there could be multiple such ids

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

span of the extern crate that caused this to be loaded

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

If true, then this crate is the crate named by the extern crate referenced above. If false, then this crate is a dep of the crate.

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

Number of links to reach the extern crate def_id declaration; used to select the extern crate with the shortest path

Trait Implementations

impl Clone for ExternCrate
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ExternCrate
[src]

Formats the value using the given formatter.

impl Copy for ExternCrate
[src]