pub enum Scope<'s, 'a, C, E> {
Expr(&'s ExprArgs<'a, C, E>),
Context(&'s ContextArgs<'a>),
}Expand description
What a code node sees: XState’s evaluator scope. The root context is
computed by the context factory (ContextArgs: the input, spawn,
self); everything else sees the transition arguments (ExprArgs).
Variants§
Expr(&'s ExprArgs<'a, C, E>)
Context(&'s ContextArgs<'a>)
Auto Trait Implementations§
impl<'s, 'a, C, E> !RefUnwindSafe for Scope<'s, 'a, C, E>
impl<'s, 'a, C, E> !Send for Scope<'s, 'a, C, E>
impl<'s, 'a, C, E> !Sync for Scope<'s, 'a, C, E>
impl<'s, 'a, C, E> !UnwindSafe for Scope<'s, 'a, C, E>
impl<'s, 'a, C, E> Forget for Scope<'s, 'a, C, E>
impl<'s, 'a, C, E> Freeze for Scope<'s, 'a, C, E>
impl<'s, 'a, C, E> Move for Scope<'s, 'a, C, E>
impl<'s, 'a, C, E> Unpin for Scope<'s, 'a, C, E>
impl<'s, 'a, C, E> UnsafeUnpin for Scope<'s, 'a, C, E>
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