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: FileEncoder
    ) -> FileEncodeResult; }

Required Methods

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

Implementors