pub struct Import {
pub public: bool,
pub path: Path,
pub alias: Option<Ident>,
pub names: Option<Vec<ImportName>>,
}Expand description
An import (spec chapter 6, section 2).
Fields§
§public: boolpub import (a re-export).
path: PathThe module path.
alias: Option<Ident>as name after a whole-module import.
names: Option<Vec<ImportName>>The .{A, B as C} group, if present.
Trait Implementations§
impl StructuralPartialEq for Import
Auto Trait Implementations§
impl Freeze for Import
impl RefUnwindSafe for Import
impl Send for Import
impl Sync for Import
impl Unpin for Import
impl UnsafeUnpin for Import
impl UnwindSafe for Import
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