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

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

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

Associated Constants

const CLEAR_CROSS_CRATE: bool[src]

Required methods

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

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

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

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

Implementors

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

const CLEAR_CROSS_CRATE: bool[src]

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

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

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

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