[][src]Struct rustc_middle::infer::canonical::QueryResponse

pub struct QueryResponse<'tcx, R> {
    pub var_values: CanonicalVarValues<'tcx>,
    pub region_constraints: QueryRegionConstraints<'tcx>,
    pub certainty: Certainty,
    pub value: R,
}

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: Certaintyvalue: R

Implementations

impl<'tcx, R> QueryResponse<'tcx, R>[src]

pub fn is_proven(&self) -> bool[src]

pub fn is_ambiguous(&self) -> bool[src]

Trait Implementations

impl<'tcx, R: Clone> Clone for QueryResponse<'tcx, R>[src]

impl<'tcx, R: Debug> Debug for QueryResponse<'tcx, R>[src]

impl<'tcx, '__ctx, R> HashStable<StableHashingContext<'__ctx>> for QueryResponse<'tcx, R> where
    R: HashStable<StableHashingContext<'__ctx>>, 
[src]

impl<'tcx, '__lifted, R> Lift<'__lifted> for QueryResponse<'tcx, R> where
    R: Lift<'__lifted>, 
[src]

type Lifted = QueryResponse<'__lifted, R::Lifted>

impl<'tcx, R> TypeFoldable<'tcx> for QueryResponse<'tcx, R> where
    R: TypeFoldable<'tcx>, 
[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized
[src]

impl<Ctxt, T> DepNodeParams<Ctxt> for T where
    Ctxt: DepContext,
    T: HashStable<<Ctxt as DepContext>::StableHashingContext> + Debug
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeResult<T> for T[src]

type Error = !

impl<'tcx, T> Subst<'tcx> for T where
    T: TypeFoldable<'tcx>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]