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

Required Methods§

source

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

source

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

source

fn initial_discriminant<'tcx>(&self, tcx: TyCtxt<'tcx>) -> 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§