pub enum Guard {
Atom {
name: String,
neg: bool,
},
And(Box<Guard>, Box<Guard>),
Or(Box<Guard>, Box<Guard>),
ExprGuard(Expr),
}Expand description
§34: guard — boolean expression over session states, evaluated at
dispatch time. quoted, not quoted, a and b, a or b.
Variants§
Atom
And(Box<Guard>, Box<Guard>)
Or(Box<Guard>, Box<Guard>)
ExprGuard(Expr)
§38.3: full expression guard — when $p > 100 — evaluated with
the trigger’s captures in scope (captures shadow session states)
Implementations§
Trait Implementations§
impl StructuralPartialEq for Guard
Auto Trait Implementations§
impl Freeze for Guard
impl RefUnwindSafe for Guard
impl Send for Guard
impl Sync for Guard
impl Unpin for Guard
impl UnsafeUnpin for Guard
impl UnwindSafe for Guard
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