Trait rustc_middle::ty::inherent::Ty

source ·
pub trait Ty<I>: Copy + DebugWithInfcx<I> + Hash + Eq + Into<<I as Interner>::GenericArg> + Into<<I as Interner>::Term> + IntoKind<Kind = TyKind<I>> + TypeSuperVisitable<I> + TypeSuperFoldable<I> + Flags
where I: Interner<Ty = Self>,
{ // Required methods fn new_anon_bound( interner: I, debruijn: DebruijnIndex, var: BoundVar ) -> Self; fn new_alias(interner: I, kind: AliasTyKind, alias_ty: AliasTy<I>) -> Self; }

Required Methods§

source

fn new_anon_bound(interner: I, debruijn: DebruijnIndex, var: BoundVar) -> Self

source

fn new_alias(interner: I, kind: AliasTyKind, alias_ty: AliasTy<I>) -> Self

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'tcx> Ty<TyCtxt<'tcx>> for Ty<'tcx>