Enum salsa_2022::runtime::local_state::QueryOrigin
source · [−]pub enum QueryOrigin {
Assigned(DatabaseKeyIndex),
BaseInput,
Derived(QueryEdges),
DerivedUntracked(QueryEdges),
}
Expand description
Tracks the way that a memoized value for a query was created.
Variants
Assigned(DatabaseKeyIndex)
The value was assigned as the output of another query (e.g., using specify
).
The DatabaseKeyIndex
is the identity of the assigning query.
BaseInput
This value was set as a base input to the computation.
Derived(QueryEdges)
The value was derived by executing a function
and we were able to track ALL of that function’s inputs.
Those inputs are described in QueryEdges
.
DerivedUntracked(QueryEdges)
The value was derived by executing a function
but that function also reported that it read untracked inputs.
The QueryEdges
argument contains a listing of all the inputs we saw
(but we know there were more).
Trait Implementations
sourceimpl Clone for QueryOrigin
impl Clone for QueryOrigin
sourcefn clone(&self) -> QueryOrigin
fn clone(&self) -> QueryOrigin
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for QueryOrigin
impl Send for QueryOrigin
impl Sync for QueryOrigin
impl Unpin for QueryOrigin
impl UnwindSafe for QueryOrigin
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more