[−][src]Struct rustc_mir::borrow_check::type_check::constraint_conversion::ConstraintConversion

pub(crate) struct ConstraintConversion<'a, 'tcx> {
    infcx: &'a InferCtxt<'a, 'tcx>,
    tcx: TyCtxt<'tcx>,
    universal_regions: &'a UniversalRegions<'tcx>,
    region_bound_pairs: &'a RegionBoundPairs<'tcx>,
    implicit_region_bound: Option<Region<'tcx>>,
    param_env: ParamEnv<'tcx>,
    locations: Locations,
    category: ConstraintCategory,
    constraints: &'a mut MirTypeckRegionConstraints<'tcx>,
}

Fields

infcx: &'a InferCtxt<'a, 'tcx>tcx: TyCtxt<'tcx>universal_regions: &'a UniversalRegions<'tcx>region_bound_pairs: &'a RegionBoundPairs<'tcx>implicit_region_bound: Option<Region<'tcx>>param_env: ParamEnv<'tcx>locations: Locationscategory: ConstraintCategoryconstraints: &'a mut MirTypeckRegionConstraints<'tcx>

Implementations

impl<'a, 'tcx> ConstraintConversion<'a, 'tcx>[src]

pub(crate) fn new(
    infcx: &'a InferCtxt<'a, 'tcx>,
    universal_regions: &'a UniversalRegions<'tcx>,
    region_bound_pairs: &'a RegionBoundPairs<'tcx>,
    implicit_region_bound: Option<Region<'tcx>>,
    param_env: ParamEnv<'tcx>,
    locations: Locations,
    category: ConstraintCategory,
    constraints: &'a mut MirTypeckRegionConstraints<'tcx>
) -> Self
[src]

pub(in borrow_check::type_check) fn convert_all(
    &mut self,
    query_constraints: &QueryRegionConstraints<'tcx>
)
[src]

pub(in borrow_check::type_check) fn convert(
    &mut self,
    query_constraint: &QueryOutlivesConstraint<'tcx>
)
[src]

pub(in borrow_check::type_check::constraint_conversion) fn verify_to_type_test(
    &mut self,
    generic_kind: GenericKind<'tcx>,
    region: Region<'tcx>,
    verify_bound: VerifyBound<'tcx>
) -> TypeTest<'tcx>
[src]

pub(in borrow_check::type_check::constraint_conversion) fn to_region_vid(
    &mut self,
    r: Region<'tcx>
) -> RegionVid
[src]

pub(in borrow_check::type_check::constraint_conversion) fn add_outlives(
    &mut self,
    sup: RegionVid,
    sub: RegionVid
)
[src]

pub(in borrow_check::type_check::constraint_conversion) fn add_type_test(
    &mut self,
    type_test: TypeTest<'tcx>
)
[src]

Trait Implementations

impl<'a, 'b, 'tcx> TypeOutlivesDelegate<'tcx> for &'a mut ConstraintConversion<'b, 'tcx>[src]

Auto Trait Implementations

impl<'a, 'tcx> !RefUnwindSafe for ConstraintConversion<'a, 'tcx>

impl<'a, 'tcx> !Send for ConstraintConversion<'a, 'tcx>

impl<'a, 'tcx> !Sync for ConstraintConversion<'a, 'tcx>

impl<'a, 'tcx> Unpin for ConstraintConversion<'a, 'tcx> where
    'tcx: 'a, 

impl<'a, 'tcx> !UnwindSafe for ConstraintConversion<'a, 'tcx>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]