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