Enum swc_estree_ast::ModuleSpecifier
source · pub enum ModuleSpecifier {
Export(ExportSpecifier),
ImportDefault(ImportDefaultSpecifier),
ImportNamespace(ImportNamespaceSpecifier),
Import(ImportSpecifier),
ExportNamespace(ExportNamespaceSpecifier),
ExportDefault(ExportDefaultSpecifier),
}
Variants§
Export(ExportSpecifier)
ImportDefault(ImportDefaultSpecifier)
ImportNamespace(ImportNamespaceSpecifier)
Import(ImportSpecifier)
ExportNamespace(ExportNamespaceSpecifier)
ExportDefault(ExportDefaultSpecifier)
Trait Implementations§
source§impl Clone for ModuleSpecifier
impl Clone for ModuleSpecifier
source§fn clone(&self) -> ModuleSpecifier
fn clone(&self) -> ModuleSpecifier
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 ModuleSpecifier
impl Debug for ModuleSpecifier
source§impl<'de> Deserialize<'de> for ModuleSpecifier
impl<'de> Deserialize<'de> for ModuleSpecifier
source§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
source§impl PartialEq for ModuleSpecifier
impl PartialEq for ModuleSpecifier
source§fn eq(&self, other: &ModuleSpecifier) -> bool
fn eq(&self, other: &ModuleSpecifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ModuleSpecifier
impl Serialize for ModuleSpecifier
impl StructuralPartialEq for ModuleSpecifier
Auto Trait Implementations§
impl RefUnwindSafe for ModuleSpecifier
impl Send for ModuleSpecifier
impl Sync for ModuleSpecifier
impl Unpin for ModuleSpecifier
impl UnwindSafe for ModuleSpecifier
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more