[−][src]Trait rustc_middle::ty::codec::TyEncoder

pub trait TyEncoder<'tcx>: Encoder {
    pub const CLEAR_CROSS_CRATE: bool;

    pub fn tcx(&self) -> TyCtxt<'tcx>;
pub fn position(&self) -> usize;
pub fn type_shorthands(&mut self) -> &mut FxHashMap<Ty<'tcx>, usize>;
pub fn predicate_shorthands(
        &mut self
    ) -> &mut FxHashMap<Predicate<'tcx>, usize>;
pub fn encode_alloc_id(
        &mut self,
        alloc_id: &AllocId
    ) -> Result<(), Self::Error>; }

Associated Constants

pub const CLEAR_CROSS_CRATE: bool[src]

Loading content...

Required methods

pub fn tcx(&self) -> TyCtxt<'tcx>[src]

pub fn position(&self) -> usize[src]

pub fn type_shorthands(&mut self) -> &mut FxHashMap<Ty<'tcx>, usize>[src]

pub fn predicate_shorthands(&mut self) -> &mut FxHashMap<Predicate<'tcx>, usize>[src]

pub fn encode_alloc_id(&mut self, alloc_id: &AllocId) -> Result<(), Self::Error>[src]

Loading content...

Implementors

impl<'a, 'tcx, E> TyEncoder<'tcx> for CacheEncoder<'a, 'tcx, E> where
    E: 'a + OpaqueEncoder, 
[src]

Loading content...