Struct rolldown_common::ImportedSpecifier
source · pub struct ImportedSpecifier {
pub imported_as: Symbol,
pub imported: JsWord,
}
Expand description
For import { foo as foo2 } from './foo'
.
foo
is local_name
and foo2
is imported_as
Fields§
§imported_as: Symbol
§imported: JsWord
Trait Implementations§
source§impl Clone for ImportedSpecifier
impl Clone for ImportedSpecifier
source§fn clone(&self) -> ImportedSpecifier
fn clone(&self) -> ImportedSpecifier
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ImportedSpecifier
impl Debug for ImportedSpecifier
source§impl Hash for ImportedSpecifier
impl Hash for ImportedSpecifier
source§impl PartialEq<ImportedSpecifier> for ImportedSpecifier
impl PartialEq<ImportedSpecifier> for ImportedSpecifier
source§fn eq(&self, other: &ImportedSpecifier) -> bool
fn eq(&self, other: &ImportedSpecifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.