rustc_middle::ty::sty

Type Alias Binder

Source
pub type Binder<'tcx, T> = Binder<TyCtxt<'tcx>, T>;

Aliased Type§

struct Binder<'tcx, T> { /* private fields */ }

Trait Implementations§

Source§

impl EraseType for Binder<'_, &List<Ty<'_>>>

Source§

type Result = [u8; 16]

Source§

impl EraseType for Binder<'_, FnSig<'_>>

Source§

type Result = [u8; 24]

Source§

impl<T: ParameterizedOverTcx> ParameterizedOverTcx for Binder<'static, T>

Source§

type Value<'tcx> = Binder<TyCtxt<'tcx>, <T as ParameterizedOverTcx>::Value<'tcx>>

Source§

impl<'tcx, T, P: PrettyPrinter<'tcx>> Print<'tcx, P> for Binder<'tcx, T>
where T: Print<'tcx, P> + TypeFoldable<TyCtxt<'tcx>>,

Source§

impl<'tcx> PrintPolyTraitRefExt<'tcx> for Binder<'tcx, TraitRef<'tcx>>

Source§

impl<'tcx> Value<TyCtxt<'tcx>> for Binder<'_, FnSig<'_>>

Source§

fn from_cycle_error( tcx: TyCtxt<'tcx>, cycle_error: &CycleError, guar: ErrorGuaranteed, ) -> Self

Layout§

Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.