Struct rustc_session::cstore::ExternCrate
source · pub struct ExternCrate {
pub src: ExternCrateSource,
pub span: Span,
pub path_len: usize,
pub dependency_of: CrateNum,
}
Fields
src: ExternCrateSource
span: 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
sourceimpl ExternCrate
impl ExternCrate
Trait Implementations
sourceimpl Clone for ExternCrate
impl Clone for ExternCrate
sourcefn clone(&self) -> ExternCrate
fn clone(&self) -> ExternCrate
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ExternCrate
impl Debug for ExternCrate
sourceimpl<__CTX> HashStable<__CTX> for ExternCratewhere
__CTX: HashStableContext,
impl<__CTX> HashStable<__CTX> for ExternCratewhere
__CTX: HashStableContext,
fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)
impl Copy for ExternCrate
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes