Trait EncodableWithShorthand
rustc_middle::ty::codec
pub trait EncodableWithShorthand<'tcx, E: TyEncoder<'tcx>>: Copy + Eq + Hash { type Variant: Encodable<E>; fn variant(&self) -> &Self::Variant; }
type Variant: Encodable<E>
fn variant(&self) -> &Self::Variant
impl<'tcx, E: TyEncoder<'tcx>> EncodableWithShorthand<'tcx, E> for Predicate<'tcx>
type Variant = PredicateKind<'tcx>
impl<'tcx, E: TyEncoder<'tcx>> EncodableWithShorthand<'tcx, E> for Ty<'tcx>
type Variant = TyKind<'tcx>