[−][src]Struct rustc_middle::middle::cstore::ExternCrate

pub struct ExternCrate {
    pub src: ExternCrateSource,
    pub span: Span,
    pub path_len: usize,
    pub dependency_of: CrateNum,
}

Fields

src: ExternCrateSourcespan: Span

span of the extern crate that caused this to be loaded

path_len: usize

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

dependency_of: CrateNum

Crate that depends on this crate

Implementations

impl ExternCrate[src]

pub fn is_direct(&self) -> bool[src]

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.

pub fn rank(&self) -> impl PartialOrd[src]

Trait Implementations

impl Clone for ExternCrate[src]

impl Copy for ExternCrate[src]

impl Debug for ExternCrate[src]

impl<'__ctx> HashStable<StableHashingContext<'__ctx>> for ExternCrate[src]

Auto Trait Implementations

impl RefUnwindSafe for ExternCrate

impl !Send for ExternCrate

impl !Sync for ExternCrate

impl Unpin for ExternCrate

impl UnwindSafe for ExternCrate

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<'tcx, T> ArenaAllocatable<'tcx, ()> for T where
    T: Copy, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeResult<T> for T[src]

type Error = !

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]