[][src]Struct resast::decl::ModImport

pub struct ModImport<'a> {
    pub specifiers: Vec<ImportSpecifier<'a>>,
    pub source: Lit<'a>,
}

A declaration that imports exported members of another module

import {Thing} from './stuff.js';

Fields

specifiers: Vec<ImportSpecifier<'a>>source: Lit<'a>

Trait Implementations

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

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

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for ModImport<'a>

impl<'a> Send for ModImport<'a>

impl<'a> Sync for ModImport<'a>

impl<'a> Unpin for ModImport<'a>

impl<'a> UnwindSafe for ModImport<'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.