Enum scilla_parser::ast::nodes::NodeRemoteFetchStatement
source · pub enum NodeRemoteFetchStatement {
ReadStateMutable(WithMetaData<String>, WithMetaData<String>, WithMetaData<NodeVariableIdentifier>),
ReadStateMutableSpecialId(WithMetaData<String>, WithMetaData<String>, WithMetaData<String>),
ReadStateMutableMapAccess(WithMetaData<String>, WithMetaData<String>, WithMetaData<String>, Vec<WithMetaData<NodeMapAccess>>),
ReadStateMutableMapAccessExists(WithMetaData<String>, WithMetaData<String>, WithMetaData<String>, Vec<WithMetaData<NodeMapAccess>>),
ReadStateMutableCastAddress(WithMetaData<String>, WithMetaData<NodeVariableIdentifier>, WithMetaData<NodeAddressType>),
}Expand description
NodeRemoteFetchStatement represents a remote fetch statement node in the AST It can be one of many different types of remote fetch statements
Variants§
ReadStateMutable(WithMetaData<String>, WithMetaData<String>, WithMetaData<NodeVariableIdentifier>)
Represents a read state mutable statement
Example: read x from state;
ReadStateMutableSpecialId(WithMetaData<String>, WithMetaData<String>, WithMetaData<String>)
Represents a read state mutable special id statement
Example: read x from state with id;
ReadStateMutableMapAccess(WithMetaData<String>, WithMetaData<String>, WithMetaData<String>, Vec<WithMetaData<NodeMapAccess>>)
Represents a read state mutable map access statement
Example: read x from state with map access;
ReadStateMutableMapAccessExists(WithMetaData<String>, WithMetaData<String>, WithMetaData<String>, Vec<WithMetaData<NodeMapAccess>>)
Represents a read state mutable map access exists statement
Example: read x from state with map access if exists;
ReadStateMutableCastAddress(WithMetaData<String>, WithMetaData<NodeVariableIdentifier>, WithMetaData<NodeAddressType>)
Represents a read state mutable cast address statement
Example: read x from state with cast address;
Trait Implementations§
source§impl AstVisitor for NodeRemoteFetchStatement
impl AstVisitor for NodeRemoteFetchStatement
fn visit( &self, emitter: &mut dyn AstConverting ) -> Result<TraversalResult, String>
source§impl Clone for NodeRemoteFetchStatement
impl Clone for NodeRemoteFetchStatement
source§fn clone(&self) -> NodeRemoteFetchStatement
fn clone(&self) -> NodeRemoteFetchStatement
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 NodeRemoteFetchStatement
impl Debug for NodeRemoteFetchStatement
source§impl PartialEq for NodeRemoteFetchStatement
impl PartialEq for NodeRemoteFetchStatement
source§fn eq(&self, other: &NodeRemoteFetchStatement) -> bool
fn eq(&self, other: &NodeRemoteFetchStatement) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for NodeRemoteFetchStatement
impl PartialOrd for NodeRemoteFetchStatement
source§fn partial_cmp(&self, other: &NodeRemoteFetchStatement) -> Option<Ordering>
fn partial_cmp(&self, other: &NodeRemoteFetchStatement) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for NodeRemoteFetchStatement
impl StructuralEq for NodeRemoteFetchStatement
impl StructuralPartialEq for NodeRemoteFetchStatement
Auto Trait Implementations§
impl RefUnwindSafe for NodeRemoteFetchStatement
impl Send for NodeRemoteFetchStatement
impl Sync for NodeRemoteFetchStatement
impl Unpin for NodeRemoteFetchStatement
impl UnwindSafe for NodeRemoteFetchStatement
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