[][src]Enum resast::decl::ImportSpecifier

pub enum ImportSpecifier<'a> {
    Normal(NormalImportSpec<'a>),
    Default(Ident<'a>),
    Namespace(Ident<'a>),
}

The name of the thing being imported

Variants

Normal(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>)

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>)

Import all exported members from a module in a namespace.

import * as Moment from 'moment.js';

Trait Implementations

impl<'a> Clone for ImportSpecifier<'a>[src]

impl<'a> Debug for ImportSpecifier<'a>[src]

impl<'a> PartialEq<ImportSpecifier<'a>> for ImportSpecifier<'a>[src]

impl<'a> StructuralPartialEq for ImportSpecifier<'a>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.