pub enum ChoiceGraphNode {
Start,
End,
Activity(String),
SubModel(u32),
}Expand description
A node in a ChoiceGraph.
Variants§
Start
Unique Start marker (no incoming edges).
End
Unique End marker (no outgoing edges).
Activity(String)
Inline activity by label. Normalized to SubModel(_) when added to an
arena.
SubModel(u32)
Reference to a sub-model by arena root index.
Trait Implementations§
Source§impl Clone for ChoiceGraphNode
impl Clone for ChoiceGraphNode
Source§fn clone(&self) -> ChoiceGraphNode
fn clone(&self) -> ChoiceGraphNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChoiceGraphNode
impl Debug for ChoiceGraphNode
Source§impl<'de> Deserialize<'de> for ChoiceGraphNode
impl<'de> Deserialize<'de> for ChoiceGraphNode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ChoiceGraphNode
impl PartialEq for ChoiceGraphNode
Source§fn eq(&self, other: &ChoiceGraphNode) -> bool
fn eq(&self, other: &ChoiceGraphNode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ChoiceGraphNode
impl Serialize for ChoiceGraphNode
impl Eq for ChoiceGraphNode
impl StructuralPartialEq for ChoiceGraphNode
Auto Trait Implementations§
impl Freeze for ChoiceGraphNode
impl RefUnwindSafe for ChoiceGraphNode
impl Send for ChoiceGraphNode
impl Sync for ChoiceGraphNode
impl Unpin for ChoiceGraphNode
impl UnsafeUnpin for ChoiceGraphNode
impl UnwindSafe for ChoiceGraphNode
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.