pub struct NodeTransitionDefinition {
pub name: WithMetaData<NodeComponentId>,
pub parameters: WithMetaData<NodeComponentParameters>,
pub body: WithMetaData<NodeComponentBody>,
}
Expand description
NodeTransitionDefinition represents a transition definition node in the AST
It contains a name, parameters and a body
Example: transition Transfer (from: ByStr20, to: ByStr20, amount: Uint128) = ...
Fields§
§name: WithMetaData<NodeComponentId>
The name of the transition definition
parameters: WithMetaData<NodeComponentParameters>
The parameters of the transition definition
body: WithMetaData<NodeComponentBody>
The body of the transition definition
Trait Implementations§
Source§impl AstVisitor for NodeTransitionDefinition
impl AstVisitor for NodeTransitionDefinition
fn visit( &self, emitter: &mut dyn AstConverting, ) -> Result<TraversalResult, String>
Source§impl Clone for NodeTransitionDefinition
impl Clone for NodeTransitionDefinition
Source§fn clone(&self) -> NodeTransitionDefinition
fn clone(&self) -> NodeTransitionDefinition
Returns a copy of the value. Read more
1.0.0 · 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 NodeTransitionDefinition
impl Debug for NodeTransitionDefinition
Source§impl PartialEq for NodeTransitionDefinition
impl PartialEq for NodeTransitionDefinition
Source§impl PartialOrd for NodeTransitionDefinition
impl PartialOrd for NodeTransitionDefinition
impl Eq for NodeTransitionDefinition
impl StructuralPartialEq for NodeTransitionDefinition
Auto Trait Implementations§
impl Freeze for NodeTransitionDefinition
impl RefUnwindSafe for NodeTransitionDefinition
impl Send for NodeTransitionDefinition
impl Sync for NodeTransitionDefinition
impl Unpin for NodeTransitionDefinition
impl UnwindSafe for NodeTransitionDefinition
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