Enum resast::decl::ImportSpecifier [−][src]
pub enum ImportSpecifier<'a> {
Normal(Vec<NormalImportSpec<'a>>),
Default(Ident<'a>),
Namespace(Ident<'a>),
}
Expand description
The name of the thing being imported
Variants
Normal(Vec<NormalImportSpec<'a>>)
Tuple Fields
0: Vec<NormalImportSpec<'a>>
A specifier in curly braces, this might have a local alias
import {Thing} from './stuff.js';
import {People as Persons} from './places.js';
Default(Ident<'a>)
Tuple Fields
0: Ident<'a>
A specifier that has been exported with the default keyword, this should not be wrapped in curly braces.
import DefaultThing from './stuff/js';
Namespace(Ident<'a>)
Tuple Fields
0: Ident<'a>
Import all exported members from a module in a namespace.
import * as Moment from 'moment.js';
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'a> RefUnwindSafe for ImportSpecifier<'a>
impl<'a> Send for ImportSpecifier<'a>
impl<'a> Sync for ImportSpecifier<'a>
impl<'a> Unpin for ImportSpecifier<'a>
impl<'a> UnwindSafe for ImportSpecifier<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more