pub struct ImportStmt { /* private fields */ }Implementations§
Source§impl ImportStmt
impl ImportStmt
Sourcepub fn list(&self) -> Option<ImportList>
pub fn list(&self) -> Option<ImportList>
The { … } name list, present only for the bare form
(IMPORT { a } FROM mod). Absent for the qualified form
(IMPORT mod).
Sourcepub fn module(&self) -> Option<ImportModule>
pub fn module(&self) -> Option<ImportModule>
The imported module name node (present in both forms).
Trait Implementations§
Source§impl AstNode for ImportStmt
impl AstNode for ImportStmt
Source§fn can_cast(kind: SyntaxKind) -> bool
fn can_cast(kind: SyntaxKind) -> bool
Returns
true if a node with the given kind can be cast to Self.Source§fn cast(node: SyntaxNode) -> Option<Self>
fn cast(node: SyntaxNode) -> Option<Self>
Try to cast a generic
SyntaxNode into this typed wrapper.Source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
Access the underlying
SyntaxNode.Source§impl Clone for ImportStmt
impl Clone for ImportStmt
Source§fn clone(&self) -> ImportStmt
fn clone(&self) -> ImportStmt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ImportStmt
impl Debug for ImportStmt
Source§impl Display for ImportStmt
impl Display for ImportStmt
impl Eq for ImportStmt
Source§impl Hash for ImportStmt
impl Hash for ImportStmt
Source§impl PartialEq for ImportStmt
impl PartialEq for ImportStmt
impl StructuralPartialEq for ImportStmt
Auto Trait Implementations§
impl !RefUnwindSafe for ImportStmt
impl !Send for ImportStmt
impl !Sync for ImportStmt
impl !UnwindSafe for ImportStmt
impl Freeze for ImportStmt
impl Unpin for ImportStmt
impl UnsafeUnpin for ImportStmt
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