Function rustc_middle::ty::codec::encode_with_shorthand [−][src]
pub fn encode_with_shorthand<E, T, M, 'tcx>(
encoder: &mut E,
value: &T,
cache: M
) -> Result<(), E::Error> where
E: TyEncoder<'tcx>,
M: for<'b> Fn(&'b mut E) -> &'b mut FxHashMap<T, usize>,
T: EncodableWithShorthand<'tcx, E>,
T::Variant: DiscriminantKind<Discriminant = isize>,
Expand description
Encode the given value or a previously cached shorthand.