Metadata

Trait Metadata 

Source
pub(super) trait Metadata<'a>: Copy {
    type Context: BlobDecoder + LazyDecoder;

    // Required methods
    fn blob(self) -> &'a MetadataBlob;
    fn decoder(self, pos: usize) -> Self::Context;
}

Required Associated Types§

Required Methods§

Source

fn blob(self) -> &'a MetadataBlob

Source

fn decoder(self, pos: usize) -> Self::Context

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'a, 'tcx> Metadata<'a> for (CrateMetadataRef<'a>, TyCtxt<'tcx>)

Implementors§