Enum scilla_parser::ast::nodes::NodeImportedName
source · pub enum NodeImportedName {
RegularImport(WithMetaData<NodeTypeNameIdentifier>),
AliasedImport(WithMetaData<NodeTypeNameIdentifier>, WithMetaData<NodeTypeNameIdentifier>),
}Expand description
NodeImportedName represents an imported name node in the AST
Variants§
RegularImport(WithMetaData<NodeTypeNameIdentifier>)
Represents a regular import
Example: import CustomType;
AliasedImport(WithMetaData<NodeTypeNameIdentifier>, WithMetaData<NodeTypeNameIdentifier>)
Represents an aliased import
Example: import CustomType as Alias;
Trait Implementations§
source§impl AstVisitor for NodeImportedName
impl AstVisitor for NodeImportedName
fn visit( &self, emitter: &mut dyn AstConverting ) -> Result<TraversalResult, String>
source§impl Clone for NodeImportedName
impl Clone for NodeImportedName
source§fn clone(&self) -> NodeImportedName
fn clone(&self) -> NodeImportedName
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 NodeImportedName
impl Debug for NodeImportedName
source§impl PartialEq for NodeImportedName
impl PartialEq for NodeImportedName
source§fn eq(&self, other: &NodeImportedName) -> bool
fn eq(&self, other: &NodeImportedName) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for NodeImportedName
impl PartialOrd for NodeImportedName
source§fn partial_cmp(&self, other: &NodeImportedName) -> Option<Ordering>
fn partial_cmp(&self, other: &NodeImportedName) -> 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 NodeImportedName
impl StructuralEq for NodeImportedName
impl StructuralPartialEq for NodeImportedName
Auto Trait Implementations§
impl RefUnwindSafe for NodeImportedName
impl Send for NodeImportedName
impl Sync for NodeImportedName
impl Unpin for NodeImportedName
impl UnwindSafe for NodeImportedName
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