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§impl PartialOrd for NodeImportedName
impl PartialOrd for NodeImportedName
impl Eq for NodeImportedName
impl StructuralPartialEq for NodeImportedName
Auto Trait Implementations§
impl Freeze for NodeImportedName
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