Struct rustc_metadata::rmeta::RawDefId
source · Expand description
On-disk representation of DefId
.
This creates a type-safe way to enforce that we remap the CrateNum between the on-disk
representation and the compilation session.
Fields§
§krate: u32
§index: u32
Implementations§
source§impl RawDefId
impl RawDefId
sourcefn decode(self, meta: (CrateMetadataRef<'_>, TyCtxt<'_>)) -> DefId
fn decode(self, meta: (CrateMetadataRef<'_>, TyCtxt<'_>)) -> DefId
This exists so that provide_one!
is happy
fn decode_from_cdata(self, cdata: CrateMetadataRef<'_>) -> DefId
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for RawDefId
impl Send for RawDefId
impl Sync for RawDefId
impl Unpin for RawDefId
impl UnwindSafe for RawDefId
Blanket Implementations§
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: 8 bytes