[−][src]Struct chalk_ir::InEnvironment
A goal with an environment to solve it in.
Fields
environment: Environment<G::Interner>goal: GImplementations
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,
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,
fn clone(&self) -> InEnvironment<G>[src]
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, _TI> Fold<_I, _TI> for InEnvironment<G> where
_I: Interner,
G: HasInterner<Interner = _I>,
G: Fold<_I, _TI, Result = _U>,
_U: HasInterner<Interner = _TI>,
_TI: TargetInterner<_I>, [src]
_I: Interner,
G: HasInterner<Interner = _I>,
G: Fold<_I, _TI, Result = _U>,
_U: HasInterner<Interner = _TI>,
_TI: TargetInterner<_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
fn fold_with<'i>(
&self,
folder: &mut dyn Folder<'i, _I, _TI>,
outer_binder: DebruijnIndex
) -> Fallible<Self::Result> where
_I: 'i,
_TI: 'i, [src]
&self,
folder: &mut dyn Folder<'i, _I, _TI>,
outer_binder: DebruijnIndex
) -> Fallible<Self::Result> where
_I: 'i,
_TI: '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,
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
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,
fn eq(&self, other: &InEnvironment<G>) -> bool[src]
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>,
fn visit_with<'i, R: VisitResult>(
&self,
visitor: &mut dyn Visitor<'i, _I, Result = R>,
outer_binder: DebruijnIndex
) -> R where
_I: 'i, [src]
&self,
visitor: &mut dyn Visitor<'i, _I, Result = R>,
outer_binder: DebruijnIndex
) -> R 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,
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,
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,
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,
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,
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,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Cast for T[src]
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
I: Interner,
T: Zip<I> + HasInterner<Interner = I> + ?Sized, [src]
I: Interner,
T: Zip<I> + HasInterner<Interner = I> + ?Sized,
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
I: Interner,
T: Fold<I, I>, [src]
I: Interner,
T: Fold<I, I>,
fn shifted_in(&Self, &I) -> <T as Fold<I, I>>::Result[src]
fn shifted_in_from(&Self, &I, DebruijnIndex) -> <T as Fold<I, I>>::Result[src]
fn shifted_out_to(
&Self,
&I,
DebruijnIndex
) -> Result<<T as Fold<I, I>>::Result, NoSolution>[src]
&Self,
&I,
DebruijnIndex
) -> Result<<T as Fold<I, I>>::Result, NoSolution>
fn shifted_out(&Self, &I) -> Result<<T as Fold<I, I>>::Result, NoSolution>[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T, I> VisitExt<I> for T where
I: Interner,
T: Visit<I>, [src]
I: Interner,
T: Visit<I>,