Enum scilla_parser::ast::nodes::NodeTypeArgument
source · 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§fn eq(&self, other: &NodeTypeArgument) -> bool
fn eq(&self, other: &NodeTypeArgument) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for NodeTypeArgument
impl PartialOrd for NodeTypeArgument
source§fn partial_cmp(&self, other: &NodeTypeArgument) -> Option<Ordering>
fn partial_cmp(&self, other: &NodeTypeArgument) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for NodeTypeArgument
impl StructuralEq for NodeTypeArgument
impl StructuralPartialEq for NodeTypeArgument
Auto Trait Implementations§
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