Struct rustc_save_analysis::ExternalCrateData [−][src]
pub(crate) struct ExternalCrateData {
pub file_name: String,
pub num: u32,
pub id: GlobalCrateId,
}Expand description
Data for external crates in the prelude of a crate.
Fields
file_name: StringSource file where the external crate is declared.
num: u32A crate-local crate index of an external crate. Local crate index is always 0, so these should start from 1 and range should be contiguous, e.g. from 1 to n for n external crates.
id: GlobalCrateIdAuto Trait Implementations
impl RefUnwindSafe for ExternalCrateData
impl Send for ExternalCrateData
impl Sync for ExternalCrateData
impl Unpin for ExternalCrateData
impl UnwindSafe for ExternalCrateData
Blanket Implementations
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: 72 bytes