pub struct At<T: Annotation, A: AstTypes = DefaultTypes>(pub T, pub A::Annotation);Expand description
A value with an annotation.
Tuple Fields§
§0: T§1: A::AnnotationImplementations§
Trait Implementations§
Source§impl<T: Clone + Annotation, A: Clone + AstTypes> Clone for At<T, A>where
A::Annotation: Clone,
impl<T: Clone + Annotation, A: Clone + AstTypes> Clone for At<T, A>where
A::Annotation: Clone,
Source§impl<A: AstTypes, B: AstTypes> Foldable<A, B> for At<Expr<A>, A>
impl<A: AstTypes, B: AstTypes> Foldable<A, B> for At<Expr<A>, A>
Source§impl<T: Hash + Annotation, A: Hash + AstTypes> Hash for At<T, A>where
A::Annotation: Hash,
impl<T: Hash + Annotation, A: Hash + AstTypes> Hash for At<T, A>where
A::Annotation: Hash,
Source§impl<M: Match<A> + Annotation, A: AstTypes> Match<A> for At<M, A>
impl<M: Match<A> + Annotation, A: AstTypes> Match<A> for At<M, A>
Source§fn recurse(sub: &mut Subst<A>, pat: &Self, expr: &Self) -> bool
fn recurse(sub: &mut Subst<A>, pat: &Self, expr: &Self) -> bool
Implements recursive Subst-building for Self
Source§fn apply_rule(&mut self, pat: &Self, template: &Self) -> bool
fn apply_rule(&mut self, pat: &Self, template: &Self) -> bool
Applies a substitution rule from
pat to template on selfSource§fn match_with(&self, pat: &Self) -> Option<Subst<A>>
fn match_with(&self, pat: &Self) -> Option<Subst<A>>
Matches self against the provided pattern
Source§impl<T: PartialEq + Annotation, A: PartialEq + AstTypes> PartialEq for At<T, A>where
A::Annotation: PartialEq,
impl<T: PartialEq + Annotation, A: PartialEq + AstTypes> PartialEq for At<T, A>where
A::Annotation: PartialEq,
impl<T: Eq + Annotation, A: Eq + AstTypes> Eq for At<T, A>where
A::Annotation: Eq,
impl<T: Annotation, A: AstTypes> StructuralPartialEq for At<T, A>
Auto Trait Implementations§
impl<T, A> Freeze for At<T, A>
impl<T, A> RefUnwindSafe for At<T, A>
impl<T, A> Send for At<T, A>
impl<T, A> Sync for At<T, A>
impl<T, A> Unpin for At<T, A>
impl<T, A> UnwindSafe for At<T, A>
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