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