pub enum ImportKind {
Simple,
Alias(Spanned<String>),
List(Vec<Spanned<String>>),
}Expand description
How an import is bound into the current namespace.
Variants§
Simple
import foo — binds the last segment name.
Alias(Spanned<String>)
import foo as bar — binds under an alias.
List(Vec<Spanned<String>>)
import foo::{a, b, c} — destructures selected names.
Trait Implementations§
Source§impl Clone for ImportKind
impl Clone for ImportKind
Auto Trait Implementations§
impl Freeze for ImportKind
impl RefUnwindSafe for ImportKind
impl Send for ImportKind
impl Sync for ImportKind
impl Unpin for ImportKind
impl UnsafeUnpin for ImportKind
impl UnwindSafe for ImportKind
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