Struct rustc_trait_selection::infer::canonical::QueryResponse [−][src]
pub struct QueryResponse<'tcx, R> {
pub var_values: CanonicalVarValues<'tcx>,
pub region_constraints: QueryRegionConstraints<'tcx>,
pub certainty: Certainty,
pub value: R,
}
Expand description
After we execute a query with a canonicalized key, we get back a
Canonical<QueryResponse<..>>
. You can use
instantiate_query_result
to access the data in this result.
Fields
var_values: CanonicalVarValues<'tcx>
region_constraints: QueryRegionConstraints<'tcx>
certainty: Certainty
value: R
Auto Trait Implementations
impl<'tcx, R> !RefUnwindSafe for QueryResponse<'tcx, R>
impl<'tcx, R> !Send for QueryResponse<'tcx, R>
impl<'tcx, R> !Sync for QueryResponse<'tcx, R>
impl<'tcx, R> Unpin for QueryResponse<'tcx, R> where
R: Unpin,
impl<'tcx, R> !UnwindSafe for QueryResponse<'tcx, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn subst_spanned(
self,
tcx: TyCtxt<'tcx>,
substs: &[GenericArg<'tcx>],
span: Option<Span>
) -> T
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.