[−][src]Struct chalk_ir::InEnvironment
A goal with an environment to solve it in.
Fields
environment: Environment<G::Interner>
goal: G
Implementations
impl<G: HasInterner> InEnvironment<G>
[src]
pub fn new(environment: &Environment<G::Interner>, goal: G) -> Self
[src]
Creates a new environment/goal pair.
pub fn map<OP, H>(self, op: OP) -> InEnvironment<H> where
OP: FnOnce(G) -> H,
H: HasInterner<Interner = G::Interner>,
[src]
OP: FnOnce(G) -> H,
H: HasInterner<Interner = G::Interner>,
Maps the goal without touching the environment.
Trait Implementations
impl<T, U, I> CastTo<InEnvironment<U>> for InEnvironment<T> where
T: HasInterner<Interner = I> + CastTo<U>,
U: HasInterner<Interner = I>,
I: Interner,
[src]
T: HasInterner<Interner = I> + CastTo<U>,
U: HasInterner<Interner = I>,
I: Interner,
pub fn cast_to(self, interner: &U::Interner) -> InEnvironment<U>
[src]
impl<G: Clone + HasInterner> Clone for InEnvironment<G> where
G::Interner: Clone,
[src]
G::Interner: Clone,
pub fn clone(&self) -> InEnvironment<G>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<G: HasInterner<Interner = I> + Copy, I: Interner> Copy for InEnvironment<G> where
I::InternedProgramClauses: Copy,
[src]
I::InternedProgramClauses: Copy,
impl<G: Debug + HasInterner> Debug for InEnvironment<G> where
G::Interner: Debug,
[src]
G::Interner: Debug,
impl<G: Eq + HasInterner> Eq for InEnvironment<G> where
G::Interner: Eq,
[src]
G::Interner: Eq,
impl<G: HasInterner, _I, _U> Fold<_I> for InEnvironment<G> where
_I: Interner,
G: HasInterner<Interner = _I>,
G: Fold<_I, Result = _U>,
_U: HasInterner<Interner = _I>,
[src]
_I: Interner,
G: HasInterner<Interner = _I>,
G: Fold<_I, Result = _U>,
_U: HasInterner<Interner = _I>,
type Result = InEnvironment<_U>
The type of value that will be produced once folding is done.
Typically this is Self
, unless Self
contains borrowed
values, in which case owned values are produced (for example,
one can fold over a &T
value where T: Fold
, in which case
you get back a T
, not a &T
). Read more
pub fn fold_with<'i>(
self,
folder: &mut dyn Folder<'i, _I>,
outer_binder: DebruijnIndex
) -> Fallible<Self::Result> where
_I: 'i,
[src]
self,
folder: &mut dyn Folder<'i, _I>,
outer_binder: DebruijnIndex
) -> Fallible<Self::Result> where
_I: 'i,
impl<G: HasInterner> HasInterner for InEnvironment<G>
[src]
impl<G: Hash + HasInterner> Hash for InEnvironment<G> where
G::Interner: Hash,
[src]
G::Interner: Hash,
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<G: PartialEq + HasInterner> PartialEq<InEnvironment<G>> for InEnvironment<G> where
G::Interner: PartialEq,
[src]
G::Interner: PartialEq,
pub fn eq(&self, other: &InEnvironment<G>) -> bool
[src]
pub fn ne(&self, other: &InEnvironment<G>) -> bool
[src]
impl<G: HasInterner> StructuralEq for InEnvironment<G>
[src]
impl<G: HasInterner> StructuralPartialEq for InEnvironment<G>
[src]
impl<G: HasInterner, _I> Visit<_I> for InEnvironment<G> where
_I: Interner,
G: HasInterner<Interner = _I>,
G: Visit<_I>,
[src]
_I: Interner,
G: HasInterner<Interner = _I>,
G: Visit<_I>,
pub fn visit_with<'i, B>(
&self,
visitor: &mut dyn Visitor<'i, _I, BreakTy = B>,
outer_binder: DebruijnIndex
) -> ControlFlow<B> where
_I: 'i,
[src]
&self,
visitor: &mut dyn Visitor<'i, _I, BreakTy = B>,
outer_binder: DebruijnIndex
) -> ControlFlow<B> where
_I: 'i,
impl<T: HasInterner<Interner = I> + Zip<I>, I: Interner> Zip<I> for InEnvironment<T>
[src]
Auto Trait Implementations
impl<G> RefUnwindSafe for InEnvironment<G> where
G: RefUnwindSafe,
<<G as HasInterner>::Interner as Interner>::InternedProgramClauses: RefUnwindSafe,
[src]
G: RefUnwindSafe,
<<G as HasInterner>::Interner as Interner>::InternedProgramClauses: RefUnwindSafe,
impl<G> Send for InEnvironment<G> where
G: Send,
<<G as HasInterner>::Interner as Interner>::InternedProgramClauses: Send,
[src]
G: Send,
<<G as HasInterner>::Interner as Interner>::InternedProgramClauses: Send,
impl<G> Sync for InEnvironment<G> where
G: Sync,
<<G as HasInterner>::Interner as Interner>::InternedProgramClauses: Sync,
[src]
G: Sync,
<<G as HasInterner>::Interner as Interner>::InternedProgramClauses: Sync,
impl<G> Unpin for InEnvironment<G> where
G: Unpin,
<<G as HasInterner>::Interner as Interner>::InternedProgramClauses: Unpin,
[src]
G: Unpin,
<<G as HasInterner>::Interner as Interner>::InternedProgramClauses: Unpin,
impl<G> UnwindSafe for InEnvironment<G> where
G: UnwindSafe,
<<G as HasInterner>::Interner as Interner>::InternedProgramClauses: UnwindSafe,
[src]
G: UnwindSafe,
<<G as HasInterner>::Interner as Interner>::InternedProgramClauses: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Cast for T
[src]
pub fn cast<U>(self, interner: &U::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
[src]
Self: CastTo<U>,
U: HasInterner,
impl<T, I> CouldMatch<T> for T where
T: Zip<I> + HasInterner<Interner = I> + ?Sized,
I: Interner,
[src]
T: Zip<I> + HasInterner<Interner = I> + ?Sized,
I: Interner,
pub fn could_match(&Self, &I, &dyn UnificationDatabase<I>, &T) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, I> Shift<I> for T where
T: Fold<I>,
I: Interner,
[src]
T: Fold<I>,
I: Interner,
pub fn shifted_in(Self, &I) -> <T as Fold<I>>::Result
[src]
pub fn shifted_in_from(Self, &I, DebruijnIndex) -> <T as Fold<I>>::Result
[src]
pub fn shifted_out_to(
Self,
&I,
DebruijnIndex
) -> Result<<T as Fold<I>>::Result, NoSolution>
[src]
Self,
&I,
DebruijnIndex
) -> Result<<T as Fold<I>>::Result, NoSolution>
pub fn shifted_out(Self, &I) -> Result<<T as Fold<I>>::Result, NoSolution>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, I> VisitExt<I> for T where
T: Visit<I>,
I: Interner,
[src]
T: Visit<I>,
I: Interner,