pub enum NodeTypeArgument {
EnclosedTypeArgument(Box<WithMetaData<NodeScillaType>>),
GenericTypeArgument(WithMetaData<NodeMetaIdentifier>),
TemplateTypeArgument(WithMetaData<String>),
AddressTypeArgument(WithMetaData<NodeAddressType>),
MapTypeArgument(WithMetaData<NodeTypeMapKey>, WithMetaData<NodeTypeMapValue>),
}
Expand description
NodeTypeArgument represents a type argument node in the AST
Variants§
EnclosedTypeArgument(Box<WithMetaData<NodeScillaType>>)
Represents an enclosed type argument
Example: let x: CustomType (ArgType) = "type";
GenericTypeArgument(WithMetaData<NodeMetaIdentifier>)
Represents a generic type argument
Example: let x: CustomType ArgType = "type";
TemplateTypeArgument(WithMetaData<String>)
Represents a template type argument
Example: let x: CustomType "ArgType" = "type";
AddressTypeArgument(WithMetaData<NodeAddressType>)
Represents an address type argument
Example: let x: CustomType ByStr20 = "type";
MapTypeArgument(WithMetaData<NodeTypeMapKey>, WithMetaData<NodeTypeMapValue>)
Represents a map type argument
Example: let x: CustomType (KeyType, ValueType) = "type";
Trait Implementations§
Source§impl AstVisitor for NodeTypeArgument
impl AstVisitor for NodeTypeArgument
fn visit( &self, emitter: &mut dyn AstConverting, ) -> Result<TraversalResult, String>
Source§impl Clone for NodeTypeArgument
impl Clone for NodeTypeArgument
Source§fn clone(&self) -> NodeTypeArgument
fn clone(&self) -> NodeTypeArgument
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 NodeTypeArgument
impl Debug for NodeTypeArgument
Source§impl PartialEq for NodeTypeArgument
impl PartialEq for NodeTypeArgument
Source§impl PartialOrd for NodeTypeArgument
impl PartialOrd for NodeTypeArgument
impl Eq for NodeTypeArgument
impl StructuralPartialEq for NodeTypeArgument
Auto Trait Implementations§
impl Freeze for NodeTypeArgument
impl RefUnwindSafe for NodeTypeArgument
impl Send for NodeTypeArgument
impl Sync for NodeTypeArgument
impl Unpin for NodeTypeArgument
impl UnwindSafe for NodeTypeArgument
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