Trait rustc::ty::util::IntTypeExt
[−]
[src]
pub trait IntTypeExt { fn to_ty<'a, 'gcx, 'tcx>(&self, tcx: TyCtxt<'a, 'gcx, 'tcx>) -> Ty<'tcx>; fn disr_incr<'a, 'tcx>(&self,
tcx: TyCtxt<'a, 'tcx, 'tcx>,
val: Option<ConstInt>)
-> Option<ConstInt>; fn assert_ty_matches(&self, val: ConstInt); fn initial_discriminant<'a, 'tcx>(&self,
tcx: TyCtxt<'a, 'tcx, 'tcx>)
-> ConstInt; }
🔬 This is a nightly-only experimental API. (
rustc_private
)Required Methods
fn to_ty<'a, 'gcx, 'tcx>(&self, tcx: TyCtxt<'a, 'gcx, 'tcx>) -> Ty<'tcx>
🔬 This is a nightly-only experimental API. (
rustc_private
)fn disr_incr<'a, 'tcx>(&self,
tcx: TyCtxt<'a, 'tcx, 'tcx>,
val: Option<ConstInt>)
-> Option<ConstInt>
tcx: TyCtxt<'a, 'tcx, 'tcx>,
val: Option<ConstInt>)
-> Option<ConstInt>
🔬 This is a nightly-only experimental API. (
rustc_private
)fn assert_ty_matches(&self, val: ConstInt)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn initial_discriminant<'a, 'tcx>(&self,
tcx: TyCtxt<'a, 'tcx, 'tcx>)
-> ConstInt
tcx: TyCtxt<'a, 'tcx, 'tcx>)
-> ConstInt
🔬 This is a nightly-only experimental API. (
rustc_private
)Implementors
impl IntTypeExt for IntType