Struct swc_ecma_ast::ImportWith
source · pub struct ImportWith {
pub span: Span,
pub values: Vec<ImportWithItem>,
}
Expand description
According to the current spec with
of crate::ImportDecl can only have
strings or idents as keys, can’t be nested, can only have string literals as
values:
Fields§
§span: Span
§values: Vec<ImportWithItem>
Implementations§
Trait Implementations§
source§impl Clone for ImportWith
impl Clone for ImportWith
source§fn clone(&self) -> ImportWith
fn clone(&self) -> ImportWith
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 ImportWith
impl Debug for ImportWith
source§impl EqIgnoreSpan for ImportWith
impl EqIgnoreSpan for ImportWith
fn eq_ignore_span(&self, other: &Self) -> bool
source§impl From<ImportWith> for ObjectLit
impl From<ImportWith> for ObjectLit
source§fn from(v: ImportWith) -> Self
fn from(v: ImportWith) -> Self
Converts to this type from the input type.
source§impl Hash for ImportWith
impl Hash for ImportWith
source§impl PartialEq for ImportWith
impl PartialEq for ImportWith
source§fn eq(&self, other: &ImportWith) -> bool
fn eq(&self, other: &ImportWith) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ImportWith
impl StructuralPartialEq for ImportWith
Auto Trait Implementations§
impl Freeze for ImportWith
impl RefUnwindSafe for ImportWith
impl Send for ImportWith
impl Sync for ImportWith
impl Unpin for ImportWith
impl UnwindSafe for ImportWith
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
source§impl<T> CallHasher for T
impl<T> CallHasher for T
source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.