pub enum NodeTypeMapValueAllowingTypeArguments {
TypeMapValueNoArgs(WithMetaData<NodeTypeMapValue>),
TypeMapValueWithArgs(WithMetaData<NodeMetaIdentifier>, Vec<WithMetaData<NodeTypeMapValueArguments>>),
}
Expand description
NodeTypeMapValueAllowingTypeArguments represents a map value allowing type arguments node in the AST It can either be a TypeMapValueNoArgs or a TypeMapValueWithArgs
Variants§
TypeMapValueNoArgs(WithMetaData<NodeTypeMapValue>)
Represents a type map value with no arguments
Example: let x: Map (KeyType, ValueType) = Emp;
TypeMapValueWithArgs(WithMetaData<NodeMetaIdentifier>, Vec<WithMetaData<NodeTypeMapValueArguments>>)
Represents a type map value with arguments
Example: let x: Map ((KeyType), ValueType) = Emp;
Trait Implementations§
Source§impl AstVisitor for NodeTypeMapValueAllowingTypeArguments
impl AstVisitor for NodeTypeMapValueAllowingTypeArguments
fn visit( &self, emitter: &mut dyn AstConverting, ) -> Result<TraversalResult, String>
Source§impl Clone for NodeTypeMapValueAllowingTypeArguments
impl Clone for NodeTypeMapValueAllowingTypeArguments
Source§fn clone(&self) -> NodeTypeMapValueAllowingTypeArguments
fn clone(&self) -> NodeTypeMapValueAllowingTypeArguments
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 PartialEq for NodeTypeMapValueAllowingTypeArguments
impl PartialEq for NodeTypeMapValueAllowingTypeArguments
Source§fn eq(&self, other: &NodeTypeMapValueAllowingTypeArguments) -> bool
fn eq(&self, other: &NodeTypeMapValueAllowingTypeArguments) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl PartialOrd for NodeTypeMapValueAllowingTypeArguments
impl PartialOrd for NodeTypeMapValueAllowingTypeArguments
impl Eq for NodeTypeMapValueAllowingTypeArguments
impl StructuralPartialEq for NodeTypeMapValueAllowingTypeArguments
Auto Trait Implementations§
impl Freeze for NodeTypeMapValueAllowingTypeArguments
impl RefUnwindSafe for NodeTypeMapValueAllowingTypeArguments
impl Send for NodeTypeMapValueAllowingTypeArguments
impl Sync for NodeTypeMapValueAllowingTypeArguments
impl Unpin for NodeTypeMapValueAllowingTypeArguments
impl UnwindSafe for NodeTypeMapValueAllowingTypeArguments
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