pub enum ImportedName {
Default,
Namespace,
Named(String),
}Expand description
Which export of a module a name came from.
Variants§
Default
import d from 'm'
Namespace
import * as ns from 'm'
Named(String)
import { a } from 'm', or import { a as b } where this is a.
Trait Implementations§
Source§impl Clone for ImportedName
impl Clone for ImportedName
Source§fn clone(&self) -> ImportedName
fn clone(&self) -> ImportedName
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 moreSource§impl Debug for ImportedName
impl Debug for ImportedName
impl Eq for ImportedName
Source§impl PartialEq for ImportedName
impl PartialEq for ImportedName
impl StructuralPartialEq for ImportedName
Auto Trait Implementations§
impl Freeze for ImportedName
impl RefUnwindSafe for ImportedName
impl Send for ImportedName
impl Sync for ImportedName
impl Unpin for ImportedName
impl UnsafeUnpin for ImportedName
impl UnwindSafe for ImportedName
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