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§impl PartialOrd for NodeTypeMapKey
impl PartialOrd for NodeTypeMapKey
impl Eq for NodeTypeMapKey
impl StructuralPartialEq for NodeTypeMapKey
Auto Trait Implementations§
impl Freeze for NodeTypeMapKey
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