pub enum NodeTypeMapValueArguments {
EnclosedTypeMapValue(Box<WithMetaData<NodeTypeMapValueAllowingTypeArguments>>),
GenericMapValueArgument(WithMetaData<NodeMetaIdentifier>),
MapKeyValueType(WithMetaData<NodeTypeMapKey>, WithMetaData<NodeTypeMapValue>),
}
Expand description
NodeTypeMapValueArguments represents map value arguments node in the AST It can either be an EnclosedTypeMapValue, a GenericMapValueArgument or a MapKeyValueType
Variants§
EnclosedTypeMapValue(Box<WithMetaData<NodeTypeMapValueAllowingTypeArguments>>)
Represents an enclosed type map value
Example: let x: Map ((KeyType), ValueType) = Emp;
GenericMapValueArgument(WithMetaData<NodeMetaIdentifier>)
Represents a generic map value argument
Example: let x: Map (KeyType, ValueType) = Emp;
MapKeyValueType(WithMetaData<NodeTypeMapKey>, WithMetaData<NodeTypeMapValue>)
Represents a map key value type
Example: let x: Map ((ByStr20), ValueType) = Emp;
Trait Implementations§
Source§impl AstVisitor for NodeTypeMapValueArguments
impl AstVisitor for NodeTypeMapValueArguments
fn visit( &self, emitter: &mut dyn AstConverting, ) -> Result<TraversalResult, String>
Source§impl Clone for NodeTypeMapValueArguments
impl Clone for NodeTypeMapValueArguments
Source§fn clone(&self) -> NodeTypeMapValueArguments
fn clone(&self) -> NodeTypeMapValueArguments
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 NodeTypeMapValueArguments
impl Debug for NodeTypeMapValueArguments
Source§impl PartialOrd for NodeTypeMapValueArguments
impl PartialOrd for NodeTypeMapValueArguments
impl Eq for NodeTypeMapValueArguments
impl StructuralPartialEq for NodeTypeMapValueArguments
Auto Trait Implementations§
impl Freeze for NodeTypeMapValueArguments
impl RefUnwindSafe for NodeTypeMapValueArguments
impl Send for NodeTypeMapValueArguments
impl Sync for NodeTypeMapValueArguments
impl Unpin for NodeTypeMapValueArguments
impl UnwindSafe for NodeTypeMapValueArguments
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