Function rustc_middle::ty::codec::encode_with_shorthand

source ·
pub fn encode_with_shorthand<'tcx, E, T, M>(
    encoder: &mut E,
    value: &T,
    cache: M
)
where E: TyEncoder<I = TyCtxt<'tcx>>, M: for<'b> Fn(&'b mut E) -> &'b mut FxHashMap<T, usize>, T: EncodableWithShorthand<E>, T::Variant: DiscriminantKind<Discriminant = isize>,
Expand description

Encode the given value or a previously cached shorthand.