Trait rustc_middle::ty::context::OnDiskCache[][src]

pub trait OnDiskCache<'tcx>: Sync {
    fn new(sess: &'tcx Session, data: Mmap, start_pos: usize) -> Self
    where
        Self: Sized
;
fn new_empty(source_map: &'tcx SourceMap) -> Self
    where
        Self: Sized
;
fn drop_serialized_data(&self, tcx: TyCtxt<'tcx>);
fn serialize(
        &self,
        tcx: TyCtxt<'tcx>,
        encoder: &mut FileEncoder
    ) -> FileEncodeResult; }

Required methods

Creates a new OnDiskCache instance from the serialized data in data.

Implementors