pub struct MapSubst<'a, S: ?Sized, F> { /* private fields */ }
Expand description
Substitution mapping variables to replacement functions, created via
Substitution::map()
Trait Implementations§
Source§impl<V, R, S: Substitution + ?Sized, F: Fn((S::Var, S::Replacement)) -> (V, R)> Substitution for MapSubst<'_, S, F>
impl<V, R, S: Substitution + ?Sized, F: Fn((S::Var, S::Replacement)) -> (V, R)> Substitution for MapSubst<'_, S, F>
Source§type Replacement = R
type Replacement = R
Replacement type
Source§fn pairs(&self) -> impl ExactSizeIterator<Item = (Self::Var, Self::Replacement)>
fn pairs(&self) -> impl ExactSizeIterator<Item = (Self::Var, Self::Replacement)>
Iterate over pairs of variable and replacement
impl<'a, S: Copy + ?Sized, F: Copy> Copy for MapSubst<'a, S, F>
Auto Trait Implementations§
impl<'a, S, F> Freeze for MapSubst<'a, S, F>
impl<'a, S, F> RefUnwindSafe for MapSubst<'a, S, F>
impl<'a, S, F> Send for MapSubst<'a, S, F>
impl<'a, S, F> Sync for MapSubst<'a, S, F>
impl<'a, S, F> Unpin for MapSubst<'a, S, F>
impl<'a, S, F> UnwindSafe for MapSubst<'a, S, F>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more