struct ObligationStorage<'db> {
overflowed: Vec<Obligation<'db, Predicate<'db>>>,
pending: Vec<(Obligation<'db, Predicate<'db>>, Option<GoalStalledOn<DbInterner<'db>>>)>,
}Fields§
§overflowed: Vec<Obligation<'db, Predicate<'db>>>Obligations which resulted in an overflow in fulfillment itself.
We cannot eagerly return these as error so we instead store them here
to avoid recomputing them each time try_evaluate_obligations is called.
This also allows us to return the correct FulfillmentError for them.
pending: Vec<(Obligation<'db, Predicate<'db>>, Option<GoalStalledOn<DbInterner<'db>>>)>Implementations§
Source§impl<'db> ObligationStorage<'db>
impl<'db> ObligationStorage<'db>
fn register( &mut self, obligation: Obligation<'db, Predicate<'db>>, stalled_on: Option<GoalStalledOn<DbInterner<'db>>>, )
fn clone_pending(&self) -> Vec<Obligation<'db, Predicate<'db>>>
fn drain_pending<'this, 'cond>( &'this mut self, cond: impl 'cond + Fn(&Obligation<'db, Predicate<'db>>) -> bool, ) -> impl Iterator<Item = (Obligation<'db, Predicate<'db>>, Option<GoalStalledOn<DbInterner<'db>>>)>
fn on_fulfillment_overflow(&mut self, infcx: &InferCtxt<'db>)
Trait Implementations§
Source§impl<'db> Clone for ObligationStorage<'db>
impl<'db> Clone for ObligationStorage<'db>
Source§fn clone(&self) -> ObligationStorage<'db>
fn clone(&self) -> ObligationStorage<'db>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'db> Debug for ObligationStorage<'db>
impl<'db> Debug for ObligationStorage<'db>
Source§impl<'db> Default for ObligationStorage<'db>
impl<'db> Default for ObligationStorage<'db>
Source§fn default() -> ObligationStorage<'db>
fn default() -> ObligationStorage<'db>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'db> Freeze for ObligationStorage<'db>
impl<'db> RefUnwindSafe for ObligationStorage<'db>
impl<'db> Send for ObligationStorage<'db>
impl<'db> Sync for ObligationStorage<'db>
impl<'db> Unpin for ObligationStorage<'db>
impl<'db> UnsafeUnpin for ObligationStorage<'db>
impl<'db> UnwindSafe for ObligationStorage<'db>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more