pub struct Code {
pub id: u64,
pub lang: String,
pub source: String,
pub kind: CodeKind,
pub slot: Slot,
pub path: String,
}Expand description
A code node handed to an Evaluator: XState’s evaluator arguments
without the scope.
Fields§
§id: u64Unique per code node of a loaded machine for the life of the process,
so evaluators can cache what they compile from source.
lang: String§source: String§kind: CodeKind§slot: Slot§path: StringThe node’s JSON path ($.states.a.entry[0]).
Trait Implementations§
impl Eq for Code
impl StructuralPartialEq for Code
Auto Trait Implementations§
impl Forget for Code
impl Freeze for Code
impl Move for Code
impl RefUnwindSafe for Code
impl Send for Codewhere
RawVecInner: Send,
impl Sync for Codewhere
RawVecInner: Sync,
impl Unpin for Code
impl UnsafeUnpin for Code
impl UnwindSafe for Codewhere
RawVecInner: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.