pub struct ImportDecl {
pub path: Vec<Ident>,
pub alias: Option<Ident>,
}Expand description
Import declaration: import math.linalg or import stats as s.
Brings names from other modules into scope. The path field contains
the dot-separated segments and alias is an optional rename.
Fields§
§path: Vec<Ident>Module path segments (e.g., ["math", "linalg"]).
alias: Option<Ident>Optional alias (as name).
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