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

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(super) fn convert_all(
    &mut self,
    query_constraints: &QueryRegionConstraints<'tcx>
)
[src]

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

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

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

fn add_outlives(&mut self, sup: RegionVid, sub: RegionVid)[src]

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]

fn push_sub_region_constraint(
    &mut self,
    _origin: SubregionOrigin<'tcx>,
    a: Region<'tcx>,
    b: Region<'tcx>
)
[src]

fn push_verify(
    &mut self,
    _origin: SubregionOrigin<'tcx>,
    kind: GenericKind<'tcx>,
    a: Region<'tcx>,
    bound: VerifyBound<'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]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<T> WithConstness for T[src]

fn with_constness(self, constness: Constness) -> ConstnessAnd<Self>[src]

fn with_const(self) -> ConstnessAnd<Self>[src]

fn without_const(self) -> ConstnessAnd<Self>[src]