Trait rustc_infer::infer::canonical::ir::inherent::Const

source ·
pub trait Const<I>: Copy + DebugWithInfcx<I> + Hash + Eq + Into<<I as Interner>::GenericArg> + Into<<I as Interner>::Term> + IntoKind<Kind = ConstKind<I>> + TypeSuperVisitable<I> + TypeSuperFoldable<I> + Flags
where I: Interner<Const = Self>,
{ // Required methods fn new_anon_bound( interner: I, debruijn: DebruijnIndex, var: BoundVar, ty: <I as Interner>::Ty ) -> Self; fn new_unevaluated( interner: I, uv: UnevaluatedConst<I>, ty: <I as Interner>::Ty ) -> Self; fn ty(self) -> <I as Interner>::Ty; }

Required Methods§

source

fn new_anon_bound( interner: I, debruijn: DebruijnIndex, var: BoundVar, ty: <I as Interner>::Ty ) -> Self

source

fn new_unevaluated( interner: I, uv: UnevaluatedConst<I>, ty: <I as Interner>::Ty ) -> Self

source

fn ty(self) -> <I as Interner>::Ty

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'tcx> Const<TyCtxt<'tcx>> for Const<'tcx>

source§

fn new_anon_bound( tcx: TyCtxt<'tcx>, debruijn: DebruijnIndex, var: BoundVar, ty: Ty<'tcx> ) -> Const<'tcx>

source§

fn new_unevaluated( interner: TyCtxt<'tcx>, uv: UnevaluatedConst<TyCtxt<'tcx>>, ty: Ty<'tcx> ) -> Const<'tcx>

source§

fn ty(self) -> Ty<'tcx>

Implementors§