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

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

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Fields

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

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

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

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

span of the extern crate that caused this to be loaded

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

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

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

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

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

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.

Trait Implementations

impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for ExternCrate
[src]

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

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

impl Copy for ExternCrate
[src]

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. Read more

Auto Trait Implementations

impl !Send for ExternCrate

impl !Sync for ExternCrate