[−][src]Struct rustc_mir::borrow_check::type_check::constraint_conversion::ConstraintConversion
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]
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
pub(in borrow_check::type_check) fn convert_all(
&mut self,
query_constraints: &QueryRegionConstraints<'tcx>
)[src]
&mut self,
query_constraints: &QueryRegionConstraints<'tcx>
)
pub(in borrow_check::type_check) fn convert(
&mut self,
query_constraint: &QueryOutlivesConstraint<'tcx>
)[src]
&mut self,
query_constraint: &QueryOutlivesConstraint<'tcx>
)
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]
&mut self,
generic_kind: GenericKind<'tcx>,
region: Region<'tcx>,
verify_bound: VerifyBound<'tcx>
) -> TypeTest<'tcx>
pub(in borrow_check::type_check::constraint_conversion) fn to_region_vid(
&mut self,
r: Region<'tcx>
) -> RegionVid[src]
&mut self,
r: Region<'tcx>
) -> RegionVid
pub(in borrow_check::type_check::constraint_conversion) fn add_outlives(
&mut self,
sup: RegionVid,
sub: RegionVid
)[src]
&mut self,
sup: RegionVid,
sub: RegionVid
)
pub(in borrow_check::type_check::constraint_conversion) fn add_type_test(
&mut self,
type_test: TypeTest<'tcx>
)[src]
&mut self,
type_test: TypeTest<'tcx>
)
Trait Implementations
impl<'a, 'b, 'tcx> TypeOutlivesDelegate<'tcx> for &'a mut ConstraintConversion<'b, 'tcx>[src]
pub fn push_sub_region_constraint(
&mut self,
_origin: SubregionOrigin<'tcx>,
a: Region<'tcx>,
b: Region<'tcx>
)[src]
&mut self,
_origin: SubregionOrigin<'tcx>,
a: Region<'tcx>,
b: Region<'tcx>
)
pub fn push_verify(
&mut self,
_origin: SubregionOrigin<'tcx>,
kind: GenericKind<'tcx>,
a: Region<'tcx>,
bound: VerifyBound<'tcx>
)[src]
&mut self,
_origin: SubregionOrigin<'tcx>,
kind: GenericKind<'tcx>,
a: Region<'tcx>,
bound: VerifyBound<'tcx>
)
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,
'tcx: 'a,
impl<'a, 'tcx> !UnwindSafe for ConstraintConversion<'a, 'tcx>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.