pub enum EventExpr<'a> {
Edge {
span: Span,
edge: EdgeIdent,
value: Expr<'a>,
},
Iff {
span: Span,
expr: Box<EventExpr<'a>>,
cond: Expr<'a>,
},
Or {
span: Span,
lhs: Box<EventExpr<'a>>,
rhs: Box<EventExpr<'a>>,
},
}Variants§
Trait Implementations§
Source§impl<'a> AcceptVisitor<'a> for EventExpr<'a>
impl<'a> AcceptVisitor<'a> for EventExpr<'a>
Source§impl<'a> ForEachChild<'a> for EventExpr<'a>
impl<'a> ForEachChild<'a> for EventExpr<'a>
Source§fn for_each_child(&'a self, each: &mut dyn FnMut(&'a dyn AnyNode<'a>))
fn for_each_child(&'a self, each: &mut dyn FnMut(&'a dyn AnyNode<'a>))
Apply a function to each child node.
Source§impl<'a> ForEachNode<'a> for EventExpr<'a>
impl<'a> ForEachNode<'a> for EventExpr<'a>
Source§fn for_each_node(&'a self, each: &mut dyn FnMut(&'a dyn AnyNode<'a>))
fn for_each_node(&'a self, each: &mut dyn FnMut(&'a dyn AnyNode<'a>))
Apply a function to this node.
Source§impl HasSpan for EventExpr<'_>
impl HasSpan for EventExpr<'_>
Source§fn human_span(&self) -> Span
fn human_span(&self) -> Span
Obtain a span which can be used to refer to this node in error messages
presented to humans. This will generally be the name for things like
entities, processes, and variables. Defaults to return whatever
span()
returns.Source§impl<'a> WalkVisitor<'a> for EventExpr<'a>
impl<'a> WalkVisitor<'a> for EventExpr<'a>
impl<'a> Eq for EventExpr<'a>
impl<'a> StructuralPartialEq for EventExpr<'a>
Auto Trait Implementations§
impl<'a> !Freeze for EventExpr<'a>
impl<'a> !RefUnwindSafe for EventExpr<'a>
impl<'a> Send for EventExpr<'a>
impl<'a> Sync for EventExpr<'a>
impl<'a> Unpin for EventExpr<'a>
impl<'a> !UnwindSafe for EventExpr<'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