Struct rustc_trait_selection::traits::ChalkFulfillmentContext [−][src]
pub struct ChalkFulfillmentContext<'tcx> {
obligations: FxIndexSet<PredicateObligation<'tcx>>,
}Fields
obligations: FxIndexSet<PredicateObligation<'tcx>>Implementations
Trait Implementations
impl<'tcx> TraitEngine<'tcx> for FulfillmentContext<'tcx>[src]
impl<'tcx> TraitEngine<'tcx> for FulfillmentContext<'tcx>[src]fn normalize_projection_type(
&mut self,
infcx: &InferCtxt<'_, 'tcx>,
_param_env: ParamEnv<'tcx>,
projection_ty: ProjectionTy<'tcx>,
_cause: ObligationCause<'tcx>
) -> Ty<'tcx>[src]
&mut self,
infcx: &InferCtxt<'_, 'tcx>,
_param_env: ParamEnv<'tcx>,
projection_ty: ProjectionTy<'tcx>,
_cause: ObligationCause<'tcx>
) -> Ty<'tcx>
fn register_predicate_obligation(
&mut self,
infcx: &InferCtxt<'_, 'tcx>,
obligation: PredicateObligation<'tcx>
)[src]
&mut self,
infcx: &InferCtxt<'_, 'tcx>,
obligation: PredicateObligation<'tcx>
)
fn select_all_or_error(
&mut self,
infcx: &InferCtxt<'_, 'tcx>
) -> Result<(), Vec<FulfillmentError<'tcx>>>[src]
&mut self,
infcx: &InferCtxt<'_, 'tcx>
) -> Result<(), Vec<FulfillmentError<'tcx>>>
fn select_where_possible(
&mut self,
infcx: &InferCtxt<'_, 'tcx>
) -> Result<(), Vec<FulfillmentError<'tcx>>>[src]
&mut self,
infcx: &InferCtxt<'_, 'tcx>
) -> Result<(), Vec<FulfillmentError<'tcx>>>
fn pending_obligations(&self) -> Vec<PredicateObligation<'tcx>>[src]
fn register_bound(
&mut self,
infcx: &InferCtxt<'_, 'tcx>,
param_env: ParamEnv<'tcx>,
ty: &'tcx TyS<'tcx>,
def_id: DefId,
cause: ObligationCause<'tcx>
)[src]
fn register_bound(
&mut self,
infcx: &InferCtxt<'_, 'tcx>,
param_env: ParamEnv<'tcx>,
ty: &'tcx TyS<'tcx>,
def_id: DefId,
cause: ObligationCause<'tcx>
)[src]Requires that ty must implement the trait with def_id in
the given environment. This trait must not have any type
parameters (except for Self). Read more
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for FulfillmentContext<'tcx>
impl<'tcx> !Send for FulfillmentContext<'tcx>
impl<'tcx> !Sync for FulfillmentContext<'tcx>
impl<'tcx> Unpin for FulfillmentContext<'tcx>
impl<'tcx> !UnwindSafe for FulfillmentContext<'tcx>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<'tcx, T> TraitEngineExt<'tcx> for T where
T: TraitEngine<'tcx> + ?Sized, [src]
impl<'tcx, T> TraitEngineExt<'tcx> for T where
T: TraitEngine<'tcx> + ?Sized, [src]pub fn register_predicate_obligations(
&mut self,
infcx: &InferCtxt<'_, 'tcx>,
obligations: impl IntoIterator<Item = Obligation<'tcx, Predicate<'tcx>>>
)[src]
&mut self,
infcx: &InferCtxt<'_, 'tcx>,
obligations: impl IntoIterator<Item = Obligation<'tcx, Predicate<'tcx>>>
)
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]