pub struct ImportDecl {
pub module: ModuleName,
pub qualified: bool,
pub alias: Option<ModuleName>,
pub spec: Option<ImportSpec>,
pub span: Span,
}Expand description
An import declaration.
Fields§
§module: ModuleNameThe module being imported.
qualified: boolWhether this is a qualified import.
alias: Option<ModuleName>The alias for qualified imports.
spec: Option<ImportSpec>The import specification (hiding or explicit).
span: SpanThe span.
Trait Implementations§
Source§impl Clone for ImportDecl
impl Clone for ImportDecl
Source§fn clone(&self) -> ImportDecl
fn clone(&self) -> ImportDecl
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 moreAuto Trait Implementations§
impl Freeze for ImportDecl
impl RefUnwindSafe for ImportDecl
impl Send for ImportDecl
impl Sync for ImportDecl
impl Unpin for ImportDecl
impl UnsafeUnpin for ImportDecl
impl UnwindSafe for ImportDecl
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