Struct OriginalQueryValues
pub struct OriginalQueryValues<'db> {
pub universe_map: SmallVec<[UniverseIndex; 4]>,
pub var_values: SmallVec<[GenericArg<'db>; 8]>,
}Expand description
When we canonicalize a value to form a query, we wind up replacing various parts of it with canonical variables. This struct stores those replaced bits to remember for when we process the query result.
Fields§
§universe_map: SmallVec<[UniverseIndex; 4]>Map from the universes that appear in the query to the universes in the
caller context. For all queries except evaluate_goal (used by Chalk),
we only ever put ROOT values into the query, so this map is very
simple.
var_values: SmallVec<[GenericArg<'db>; 8]>This is equivalent to CanonicalVarValues, but using a
SmallVec yields a significant performance win.
Trait Implementations§
§impl<'db> Clone for OriginalQueryValues<'db>
impl<'db> Clone for OriginalQueryValues<'db>
§fn clone(&self) -> OriginalQueryValues<'db>
fn clone(&self) -> OriginalQueryValues<'db>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl<'db> Debug for OriginalQueryValues<'db>
impl<'db> Debug for OriginalQueryValues<'db>
§impl<'db> Default for OriginalQueryValues<'db>
impl<'db> Default for OriginalQueryValues<'db>
§fn default() -> OriginalQueryValues<'db>
fn default() -> OriginalQueryValues<'db>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'db> Freeze for OriginalQueryValues<'db>
impl<'db> RefUnwindSafe for OriginalQueryValues<'db>
impl<'db> Send for OriginalQueryValues<'db>
impl<'db> Sync for OriginalQueryValues<'db>
impl<'db> Unpin for OriginalQueryValues<'db>
impl<'db> UnwindSafe for OriginalQueryValues<'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