pub struct Subst<A: AstTypes> {
pub exp: HashMap<A::MacroId, Expr<A>>,
pub pat: HashMap<A::MacroId, Pat<A>>,
}Expand description
Stores a substitution from meta-identifiers to values
Fields§
§exp: HashMap<A::MacroId, Expr<A>>§pat: HashMap<A::MacroId, Pat<A>>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<A> Freeze for Subst<A>
impl<A> RefUnwindSafe for Subst<A>where
<A as AstTypes>::MacroId: RefUnwindSafe,
<A as AstTypes>::Path: RefUnwindSafe,
<A as AstTypes>::Literal: RefUnwindSafe,
<A as AstTypes>::Symbol: RefUnwindSafe,
<A as AstTypes>::Annotation: RefUnwindSafe,
impl<A> Send for Subst<A>
impl<A> Sync for Subst<A>
impl<A> Unpin for Subst<A>
impl<A> UnwindSafe for Subst<A>where
<A as AstTypes>::MacroId: UnwindSafe,
<A as AstTypes>::Path: UnwindSafe,
<A as AstTypes>::Literal: UnwindSafe,
<A as AstTypes>::Symbol: UnwindSafe,
<A as AstTypes>::Annotation: UnwindSafe,
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