Struct swc_ecma_ast::ImportNamedSpecifier [−][src]
pub struct ImportNamedSpecifier {
pub span: Span,
pub local: Ident,
pub imported: Option<Ident>,
pub is_type_only: bool,
}
Expand description
e.g. local = foo, imported = None import { foo } from 'mod.js'
e.g. local = bar, imported = Some(foo) for import { foo as bar } from 'mod.js'
Fields
span: Span
local: Ident
imported: Option<Ident>
is_type_only: bool
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 RefUnwindSafe for ImportNamedSpecifier
impl Send for ImportNamedSpecifier
impl Sync for ImportNamedSpecifier
impl Unpin for ImportNamedSpecifier
impl UnwindSafe for ImportNamedSpecifier
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more