Struct valkyrie_ast::ImportStatement
source · pub struct ImportStatement {
pub annotation: AttributeList,
pub kind: ImportKind,
pub term: ImportTermNode,
pub span: FileSpan,
}Expand description
import package::module::path
import "external"
Fields§
§annotation: AttributeListThe annotation of the import
kind: ImportKindThe important kind
term: ImportTermNodeThe term of the import
span: FileSpanThe range of the node
Implementations§
source§impl ImportStatement
impl ImportStatement
sourcepub fn flatten(&self) -> Vec<ImportResolvedItem>
pub fn flatten(&self) -> Vec<ImportResolvedItem>
Create a new import statement
Trait Implementations§
source§impl Clone for ImportStatement
impl Clone for ImportStatement
source§fn clone(&self) -> ImportStatement
fn clone(&self) -> ImportStatement
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 ImportStatement
impl Debug for ImportStatement
source§impl From<ImportStatement> for StatementKind
impl From<ImportStatement> for StatementKind
source§fn from(o: ImportStatement) -> Self
fn from(o: ImportStatement) -> Self
Converts to this type from the input type.
source§impl Hash for ImportStatement
impl Hash for ImportStatement
source§impl PartialEq for ImportStatement
impl PartialEq for ImportStatement
source§fn eq(&self, other: &ImportStatement) -> bool
fn eq(&self, other: &ImportStatement) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for ImportStatement
impl StructuralPartialEq for ImportStatement
Auto Trait Implementations§
impl RefUnwindSafe for ImportStatement
impl Send for ImportStatement
impl Sync for ImportStatement
impl Unpin for ImportStatement
impl UnwindSafe for ImportStatement
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