Trait rustc_middle::ty::context::OnDiskCache
source · 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§
sourcefn new(sess: &'tcx Session, data: Mmap, start_pos: usize) -> Selfwhere
Self: Sized,
fn new(sess: &'tcx Session, data: Mmap, start_pos: usize) -> Selfwhere
Self: Sized,
Creates a new OnDiskCache
instance from the serialized data in data
.