Trait rustc_metadata::rmeta::decoder::Metadata [−][src]
pub(super) trait Metadata<'a, 'tcx>: Copy { fn raw_bytes(self) -> &'a [u8]; fn cdata(self) -> Option<CrateMetadataRef<'a>> { ... } fn sess(self) -> Option<&'tcx Session> { ... } fn tcx(self) -> Option<TyCtxt<'tcx>> { ... } fn decoder(self, pos: usize) -> DecodeContext<'a, 'tcx> { ... } }
Expand description
Abstract over the various ways one can create metadata decoders.
Required methods
Provided methods
fn cdata(self) -> Option<CrateMetadataRef<'a>>fn decoder(self, pos: usize) -> DecodeContext<'a, 'tcx>