Trait clippy_utils::rustc_ty::codec::TyEncoder [−][src]
pub trait TyEncoder<'tcx>: Encoder {
const CLEAR_CROSS_CRATE: bool;
fn position(&self) -> usize;
fn type_shorthands(
&mut self
) -> &mut HashMap<&'tcx TyS<'tcx>, usize, BuildHasherDefault<FxHasher>>;
fn predicate_shorthands(
&mut self
) -> &mut HashMap<PredicateKind<'tcx>, usize, BuildHasherDefault<FxHasher>>;
fn encode_alloc_id(&mut self, alloc_id: &AllocId) -> Result<(), Self::Error>;
}