Struct rustc_infer::infer::InferOk
source · pub struct InferOk<'tcx, T> {
pub value: T,
pub obligations: PredicateObligations<'tcx>,
}
Fields§
§value: T
§obligations: PredicateObligations<'tcx>
Implementations§
source§impl<'tcx, T> InferOk<'tcx, T>
impl<'tcx, T> InferOk<'tcx, T>
pub fn unit(self) -> InferOk<'tcx, ()>
sourcepub fn into_value_registering_obligations(
self,
infcx: &InferCtxt<'tcx>,
fulfill_cx: &mut dyn TraitEngine<'tcx>
) -> T
pub fn into_value_registering_obligations(
self,
infcx: &InferCtxt<'tcx>,
fulfill_cx: &mut dyn TraitEngine<'tcx>
) -> T
Extracts value
, registering any obligations into fulfill_cx
.
source§impl<'tcx> InferOk<'tcx, ()>
impl<'tcx> InferOk<'tcx, ()>
pub fn into_obligations(self) -> PredicateObligations<'tcx>
Trait Implementations§
Auto Trait Implementations§
impl<'tcx, T> !RefUnwindSafe for InferOk<'tcx, T>
impl<'tcx, T> !Send for InferOk<'tcx, T>
impl<'tcx, T> !Sync for InferOk<'tcx, T>
impl<'tcx, T> Unpin for InferOk<'tcx, T>where
T: Unpin,
impl<'tcx, T> !UnwindSafe for InferOk<'tcx, T>
Blanket Implementations§
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.