Struct swc_ecma_ast::ImportNamedSpecifier
source · [−]pub struct ImportNamedSpecifier {
pub span: Span,
pub local: Ident,
pub imported: Option<ModuleExportName>,
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<ModuleExportName>
is_type_only: bool
Trait Implementations
sourceimpl Clone for ImportNamedSpecifier
impl Clone for ImportNamedSpecifier
sourcefn clone(&self) -> ImportNamedSpecifier
fn clone(&self) -> ImportNamedSpecifier
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ImportNamedSpecifier
impl Debug for ImportNamedSpecifier
sourceimpl<'de> Deserialize<'de> for ImportNamedSpecifier
impl<'de> Deserialize<'de> for ImportNamedSpecifier
sourcefn 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
sourceimpl EqIgnoreSpan for ImportNamedSpecifier
impl EqIgnoreSpan for ImportNamedSpecifier
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl From<ImportNamedSpecifier> for ImportSpecifier
impl From<ImportNamedSpecifier> for ImportSpecifier
sourcefn from(v: ImportNamedSpecifier) -> Self
fn from(v: ImportNamedSpecifier) -> Self
Converts to this type from the input type.
sourceimpl Hash for ImportNamedSpecifier
impl Hash for ImportNamedSpecifier
sourceimpl PartialEq<ImportNamedSpecifier> for ImportNamedSpecifier
impl PartialEq<ImportNamedSpecifier> for ImportNamedSpecifier
sourcefn eq(&self, other: &ImportNamedSpecifier) -> bool
fn eq(&self, other: &ImportNamedSpecifier) -> bool
sourceimpl Serialize for ImportNamedSpecifier
impl Serialize for ImportNamedSpecifier
sourceimpl Spanned for ImportNamedSpecifier
impl Spanned for ImportNamedSpecifier
impl Eq for ImportNamedSpecifier
impl StructuralEq for ImportNamedSpecifier
impl StructuralPartialEq for ImportNamedSpecifier
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more