Enum scilla_parser::ast::nodes::NodeTypeMapValue
source · pub enum NodeTypeMapValue {
MapValueTypeOrEnumLikeIdentifier(WithMetaData<NodeMetaIdentifier>),
MapKeyValue(Box<WithMetaData<NodeTypeMapEntry>>),
MapValueParenthesizedType(Box<WithMetaData<NodeTypeMapValueAllowingTypeArguments>>),
MapValueAddressType(Box<WithMetaData<NodeAddressType>>),
}Expand description
NodeTypeMapValue represents a type map value node in the AST
Variants§
MapValueTypeOrEnumLikeIdentifier(WithMetaData<NodeMetaIdentifier>)
Represents a map value type or enum-like identifier
Example: let x: Map (KeyType, ValueType) = Emp;
MapKeyValue(Box<WithMetaData<NodeTypeMapEntry>>)
Represents a map key value type
Example: let x: Map (KeyType, (KeyType, ValueType)) = Emp;
MapValueParenthesizedType(Box<WithMetaData<NodeTypeMapValueAllowingTypeArguments>>)
Represents a map value parenthesized type
Example: let x: Map (KeyType, (ValueType)) = Emp;
MapValueAddressType(Box<WithMetaData<NodeAddressType>>)
Represents a map value address type
Example: let x: Map (KeyType, ByStr20) = Emp;
Trait Implementations§
source§impl AstVisitor for NodeTypeMapValue
impl AstVisitor for NodeTypeMapValue
fn visit( &self, emitter: &mut dyn AstConverting ) -> Result<TraversalResult, String>
source§impl Clone for NodeTypeMapValue
impl Clone for NodeTypeMapValue
source§fn clone(&self) -> NodeTypeMapValue
fn clone(&self) -> NodeTypeMapValue
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 NodeTypeMapValue
impl Debug for NodeTypeMapValue
source§impl PartialEq for NodeTypeMapValue
impl PartialEq for NodeTypeMapValue
source§fn eq(&self, other: &NodeTypeMapValue) -> bool
fn eq(&self, other: &NodeTypeMapValue) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for NodeTypeMapValue
impl PartialOrd for NodeTypeMapValue
source§fn partial_cmp(&self, other: &NodeTypeMapValue) -> Option<Ordering>
fn partial_cmp(&self, other: &NodeTypeMapValue) -> 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 NodeTypeMapValue
impl StructuralEq for NodeTypeMapValue
impl StructuralPartialEq for NodeTypeMapValue
Auto Trait Implementations§
impl RefUnwindSafe for NodeTypeMapValue
impl Send for NodeTypeMapValue
impl Sync for NodeTypeMapValue
impl Unpin for NodeTypeMapValue
impl UnwindSafe for NodeTypeMapValue
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