[−][src]Struct rustc_traits::chalk_context::ChalkInferenceContext
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Fields
infcx: &'cx InferCtxt<'cx, 'gcx, 'tcx>
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Trait Implementations
impl<'cx, 'gcx: 'tcx, 'tcx: 'cx> Copy for ChalkInferenceContext<'cx, 'gcx, 'tcx>[src]
impl<'cx, 'gcx: 'tcx, 'tcx: 'cx> Copy for ChalkInferenceContext<'cx, 'gcx, 'tcx>impl<'cx, 'gcx: 'tcx, 'tcx: 'cx> Clone for ChalkInferenceContext<'cx, 'gcx, 'tcx>[src]
impl<'cx, 'gcx: 'tcx, 'tcx: 'cx> Clone for ChalkInferenceContext<'cx, 'gcx, 'tcx>fn clone(&self) -> ChalkInferenceContext<'cx, 'gcx, 'tcx>[src]
fn clone(&self) -> ChalkInferenceContext<'cx, 'gcx, 'tcx>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl<'gcx, 'tcx, 'cx> InferenceTable<ChalkArenas<'gcx>, ChalkArenas<'tcx>> for ChalkInferenceContext<'cx, 'gcx, 'tcx>[src]
impl<'gcx, 'tcx, 'cx> InferenceTable<ChalkArenas<'gcx>, ChalkArenas<'tcx>> for ChalkInferenceContext<'cx, 'gcx, 'tcx>fn into_hh_goal(&mut self, goal: Goal<'tcx>) -> HhGoal<ChalkArenas<'tcx>>[src]
fn into_hh_goal(&mut self, goal: Goal<'tcx>) -> HhGoal<ChalkArenas<'tcx>>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Convert the context's goal type into the HhGoal type that the SLG solver understands. The expectation is that the context's goal type has the same set of variants, but with different names and a different setup. If you inspect HhGoal, you will see that this is a "shallow" or "lazy" conversion -- that is, we convert the outermost goal into an HhGoal, but the goals contained within are left as context goals. Read more
fn add_clauses(
&mut self,
_env: &ParamEnv<'tcx>,
_clauses: Vec<ProgramClause<'tcx>>
) -> ParamEnv<'tcx>[src]
fn add_clauses(
&mut self,
_env: &ParamEnv<'tcx>,
_clauses: Vec<ProgramClause<'tcx>>
) -> ParamEnv<'tcx>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl<'gcx, 'tcx, 'cx> ResolventOps<ChalkArenas<'gcx>, ChalkArenas<'tcx>> for ChalkInferenceContext<'cx, 'gcx, 'tcx>[src]
impl<'gcx, 'tcx, 'cx> ResolventOps<ChalkArenas<'gcx>, ChalkArenas<'tcx>> for ChalkInferenceContext<'cx, 'gcx, 'tcx>fn resolvent_clause(
&mut self,
_environment: &ParamEnv<'tcx>,
_goal: &DomainGoal<'tcx>,
_subst: &CanonicalVarValues<'tcx>,
_clause: &ProgramClause<'tcx>
) -> Fallible<Canonical<'gcx, ExClause<ChalkArenas<'gcx>>>>[src]
fn resolvent_clause(
&mut self,
_environment: &ParamEnv<'tcx>,
_goal: &DomainGoal<'tcx>,
_subst: &CanonicalVarValues<'tcx>,
_clause: &ProgramClause<'tcx>
) -> Fallible<Canonical<'gcx, ExClause<ChalkArenas<'gcx>>>>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Combines the goal (instantiated within infer) with the given program clause to yield the start of a new strand (a canonical ex-clause). Read more
fn apply_answer_subst(
&mut self,
_ex_clause: ExClause<ChalkArenas<'tcx>>,
_selected_goal: &ParamEnvAnd<'tcx, Goal<'tcx>>,
_answer_table_goal: &Canonical<'gcx, ParamEnvAnd<'gcx, Goal<'gcx>>>,
_canonical_answer_subst: &Canonical<'gcx, ConstrainedSubst<'gcx>>
) -> Fallible<ExClause<ChalkArenas<'tcx>>>[src]
fn apply_answer_subst(
&mut self,
_ex_clause: ExClause<ChalkArenas<'tcx>>,
_selected_goal: &ParamEnvAnd<'tcx, Goal<'tcx>>,
_answer_table_goal: &Canonical<'gcx, ParamEnvAnd<'gcx, Goal<'gcx>>>,
_canonical_answer_subst: &Canonical<'gcx, ConstrainedSubst<'gcx>>
) -> Fallible<ExClause<ChalkArenas<'tcx>>>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl<'gcx, 'tcx, 'cx> TruncateOps<ChalkArenas<'gcx>, ChalkArenas<'tcx>> for ChalkInferenceContext<'cx, 'gcx, 'tcx>[src]
impl<'gcx, 'tcx, 'cx> TruncateOps<ChalkArenas<'gcx>, ChalkArenas<'tcx>> for ChalkInferenceContext<'cx, 'gcx, 'tcx>fn truncate_goal(
&mut self,
subgoal: &ParamEnvAnd<'tcx, Goal<'tcx>>
) -> Option<ParamEnvAnd<'tcx, Goal<'tcx>>>[src]
fn truncate_goal(
&mut self,
subgoal: &ParamEnvAnd<'tcx, Goal<'tcx>>
) -> Option<ParamEnvAnd<'tcx, Goal<'tcx>>>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
If subgoal is too large, return a truncated variant (else return None). Read more
fn truncate_answer(
&mut self,
subst: &CanonicalVarValues<'tcx>
) -> Option<CanonicalVarValues<'tcx>>[src]
fn truncate_answer(
&mut self,
subst: &CanonicalVarValues<'tcx>
) -> Option<CanonicalVarValues<'tcx>>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
If subst is too large, return a truncated variant (else return None). Read more
impl<'gcx, 'tcx, 'cx> UnificationOps<ChalkArenas<'gcx>, ChalkArenas<'tcx>> for ChalkInferenceContext<'cx, 'gcx, 'tcx>[src]
impl<'gcx, 'tcx, 'cx> UnificationOps<ChalkArenas<'gcx>, ChalkArenas<'tcx>> for ChalkInferenceContext<'cx, 'gcx, 'tcx>fn program_clauses(
&self,
_environment: &ParamEnv<'tcx>,
goal: &DomainGoal<'tcx>
) -> Vec<ProgramClause<'tcx>>[src]
fn program_clauses(
&self,
_environment: &ParamEnv<'tcx>,
goal: &DomainGoal<'tcx>
) -> Vec<ProgramClause<'tcx>>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Returns the set of program clauses that might apply to goal. (This set can be over-approximated, naturally.) Read more
fn instantiate_binders_universally(
&mut self,
_arg: &Binder<&'tcx Goal<'tcx>>
) -> Goal<'tcx>[src]
fn instantiate_binders_universally(
&mut self,
_arg: &Binder<&'tcx Goal<'tcx>>
) -> Goal<'tcx>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn instantiate_binders_existentially(
&mut self,
arg: &Binder<&'tcx Goal<'tcx>>
) -> Goal<'tcx>[src]
fn instantiate_binders_existentially(
&mut self,
arg: &Binder<&'tcx Goal<'tcx>>
) -> Goal<'tcx>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn debug_ex_clause<'v>(
&mut self,
value: &'v ExClause<ChalkArenas<'tcx>>
) -> Box<Debug + 'v>[src]
fn debug_ex_clause<'v>(
&mut self,
value: &'v ExClause<ChalkArenas<'tcx>>
) -> Box<Debug + 'v>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn canonicalize_goal(
&mut self,
value: &ParamEnvAnd<'tcx, Goal<'tcx>>
) -> Canonical<'gcx, ParamEnvAnd<'gcx, Goal<'gcx>>>[src]
fn canonicalize_goal(
&mut self,
value: &ParamEnvAnd<'tcx, Goal<'tcx>>
) -> Canonical<'gcx, ParamEnvAnd<'gcx, Goal<'gcx>>>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn canonicalize_ex_clause(
&mut self,
value: &ExClause<ChalkArenas<'tcx>>
) -> Canonical<'gcx, ExClause<ChalkArenas<'gcx>>>[src]
fn canonicalize_ex_clause(
&mut self,
value: &ExClause<ChalkArenas<'tcx>>
) -> Canonical<'gcx, ExClause<ChalkArenas<'gcx>>>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn canonicalize_constrained_subst(
&mut self,
subst: CanonicalVarValues<'tcx>,
constraints: Vec<QueryRegionConstraint<'tcx>>
) -> Canonical<'gcx, ConstrainedSubst<'gcx>>[src]
fn canonicalize_constrained_subst(
&mut self,
subst: CanonicalVarValues<'tcx>,
constraints: Vec<QueryRegionConstraint<'tcx>>
) -> Canonical<'gcx, ConstrainedSubst<'gcx>>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn u_canonicalize_goal(
&mut self,
value: &Canonical<'gcx, ParamEnvAnd<'gcx, Goal<'gcx>>>
) -> (Canonical<'gcx, ParamEnvAnd<'gcx, Goal<'gcx>>>, UniverseMap)[src]
fn u_canonicalize_goal(
&mut self,
value: &Canonical<'gcx, ParamEnvAnd<'gcx, Goal<'gcx>>>
) -> (Canonical<'gcx, ParamEnvAnd<'gcx, Goal<'gcx>>>, UniverseMap)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn invert_goal(
&mut self,
_value: &ParamEnvAnd<'tcx, Goal<'tcx>>
) -> Option<ParamEnvAnd<'tcx, Goal<'tcx>>>[src]
fn invert_goal(
&mut self,
_value: &ParamEnvAnd<'tcx, Goal<'tcx>>
) -> Option<ParamEnvAnd<'tcx, Goal<'tcx>>>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn unify_parameters(
&mut self,
_environment: &ParamEnv<'tcx>,
_a: &Kind<'tcx>,
_b: &Kind<'tcx>
) -> ChalkEngineFallible<InferOk<'tcx, ()>>[src]
fn unify_parameters(
&mut self,
_environment: &ParamEnv<'tcx>,
_a: &Kind<'tcx>,
_b: &Kind<'tcx>
) -> ChalkEngineFallible<InferOk<'tcx, ()>>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn sink_answer_subset(
&self,
value: &Canonical<'gcx, ConstrainedSubst<'gcx>>
) -> Canonical<'tcx, ConstrainedSubst<'tcx>>[src]
fn sink_answer_subset(
&self,
value: &Canonical<'gcx, ConstrainedSubst<'gcx>>
) -> Canonical<'tcx, ConstrainedSubst<'tcx>>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn lift_delayed_literal(
&self,
_value: DelayedLiteral<ChalkArenas<'tcx>>
) -> DelayedLiteral<ChalkArenas<'gcx>>[src]
fn lift_delayed_literal(
&self,
_value: DelayedLiteral<ChalkArenas<'tcx>>
) -> DelayedLiteral<ChalkArenas<'gcx>>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn into_ex_clause(
&mut self,
_result: InferOk<'tcx, ()>,
_ex_clause: &mut ExClause<ChalkArenas<'tcx>>
)[src]
fn into_ex_clause(
&mut self,
_result: InferOk<'tcx, ()>,
_ex_clause: &mut ExClause<ChalkArenas<'tcx>>
)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Add the residual subgoals as new subgoals of the ex-clause. Also add region constraints. Read more
impl<'cx, 'gcx, 'tcx> Debug for ChalkInferenceContext<'cx, 'gcx, 'tcx>[src]
impl<'cx, 'gcx, 'tcx> Debug for ChalkInferenceContext<'cx, 'gcx, 'tcx>Auto Trait Implementations
impl<'cx, 'gcx, 'tcx> !Send for ChalkInferenceContext<'cx, 'gcx, 'tcx>
impl<'cx, 'gcx, 'tcx> !Send for ChalkInferenceContext<'cx, 'gcx, 'tcx>impl<'cx, 'gcx, 'tcx> !Sync for ChalkInferenceContext<'cx, 'gcx, 'tcx>
impl<'cx, 'gcx, 'tcx> !Sync for ChalkInferenceContext<'cx, 'gcx, 'tcx>Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, type Owned = T
fn to_owned(&self) -> T[src]
fn to_owned(&self) -> TCreates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)[src]
fn clone_into(&self, target: &mut T)🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more
impl<E> SpecializationError for E[src]
impl<E> SpecializationError for Efn not_found<S, T>(trait_name: &'static str, method_name: &'static str) -> E where
T: ?Sized, [src]
fn not_found<S, T>(trait_name: &'static str, method_name: &'static str) -> E where
T: ?Sized, 🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Create an error for a missing method specialization. Defaults to panicking with type, trait & method names. S is the encoder/decoder state type, T is the type being encoded/decoded, and the arguments are the names of the trait and method that should've been overridden. Read more
impl<T> Erased for T[src]
impl<T> Erased for Timpl<T> Send for T where
T: ?Sized, [src]
impl<T> Send for T where
T: ?Sized, impl<T> Sync for T where
T: ?Sized, [src]
impl<T> Sync for T where
T: ?Sized, impl<T> Erased for T
impl<T> Erased for Timpl<T> MaybeResult for T[src]
impl<T> MaybeResult for Tfn from_ok(x: T) -> T[src]
fn from_ok(x: T) -> T🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn map_same<F>(self, f: F) -> T where
F: FnOnce(T) -> T, [src]
fn map_same<F>(self, f: F) -> T where
F: FnOnce(T) -> T, 🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl<'a, T> Captures for T where
T: ?Sized, [src]
impl<'a, T> Captures for T where
T: ?Sized,