struct StackEntry<X: Cx> {
input: X::Input,
available_depth: AvailableDepth,
reached_depth: StackDepth,
heads: CycleHeads,
encountered_overflow: bool,
has_been_used: Option<UsageKind>,
nested_goals: NestedGoals<X>,
provisional_result: Option<X::Result>,
}Expand description
Stack entries of the evaluation stack. Its fields tend to be lazily when popping a child goal or completely immutable.
Fields§
§input: X::Input§available_depth: AvailableDepthThe available depth of a given goal, immutable.
reached_depth: StackDepthThe maximum depth reached by this stack entry, only up-to date for the top of the stack and lazily updated for the rest.
heads: CycleHeadsAll cycle heads this goal depends on. Lazily updated and only up-to date for the top of the stack.
encountered_overflow: boolWhether evaluating this goal encountered overflow. Lazily updated.
has_been_used: Option<UsageKind>Whether this goal has been used as the root of a cycle. This gets eagerly updated when encountering a cycle.
nested_goals: NestedGoals<X>The nested goals of this goal, see the doc comment of the type.
provisional_result: Option<X::Result>Starts out as None and gets set when rerunning this
goal in case we encounter a cycle.
Trait Implementations§
Auto Trait Implementations§
impl<X> DynSend for StackEntry<X>
impl<X> DynSync for StackEntry<X>
impl<X> Freeze for StackEntry<X>
impl<X> RefUnwindSafe for StackEntry<X>
impl<X> Send for StackEntry<X>
impl<X> Sync for StackEntry<X>
impl<X> Unpin for StackEntry<X>
impl<X> UnwindSafe for StackEntry<X>
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
Source§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<I, T, U> Upcast<I, U> for Twhere
U: UpcastFrom<I, T>,
impl<I, T, U> Upcast<I, U> for Twhere
U: UpcastFrom<I, T>,
Source§impl<I, T> UpcastFrom<I, T> for T
impl<I, T> UpcastFrom<I, T> for T
fn upcast_from(from: T, _tcx: I) -> T
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
Source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
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.