rustc_middle::ty::util

Trait IntTypeExt

Source
pub trait IntTypeExt {
    // Required methods
    fn to_ty<'tcx>(&self, tcx: TyCtxt<'tcx>) -> Ty<'tcx>;
    fn initial_discriminant<'tcx>(&self, tcx: TyCtxt<'tcx>) -> Discr<'tcx>;
    fn disr_incr<'tcx>(
        &self,
        tcx: TyCtxt<'tcx>,
        val: Option<Discr<'tcx>>,
    ) -> Option<Discr<'tcx>>;
}

Required Methods§

Source

fn to_ty<'tcx>(&self, tcx: TyCtxt<'tcx>) -> Ty<'tcx>

Source

fn initial_discriminant<'tcx>(&self, tcx: TyCtxt<'tcx>) -> Discr<'tcx>

Source

fn disr_incr<'tcx>( &self, tcx: TyCtxt<'tcx>, val: Option<Discr<'tcx>>, ) -> Option<Discr<'tcx>>

Implementations on Foreign Types§

Source§

impl IntTypeExt for IntegerType

Source§

fn to_ty<'tcx>(&self, tcx: TyCtxt<'tcx>) -> Ty<'tcx>

Source§

fn initial_discriminant<'tcx>(&self, tcx: TyCtxt<'tcx>) -> Discr<'tcx>

Source§

fn disr_incr<'tcx>( &self, tcx: TyCtxt<'tcx>, val: Option<Discr<'tcx>>, ) -> Option<Discr<'tcx>>

Implementors§