Struct swc_ecma_ast::ImportDecl
source · [−]pub struct ImportDecl {
pub span: Span,
pub specifiers: Vec<ImportSpecifier>,
pub src: Box<Str>,
pub type_only: bool,
pub asserts: Option<Box<ObjectLit>>,
}
Fields
span: Span
specifiers: Vec<ImportSpecifier>
src: Box<Str>
type_only: bool
asserts: Option<Box<ObjectLit>>
Trait Implementations
sourceimpl Clone for ImportDecl
impl Clone for ImportDecl
sourcefn clone(&self) -> ImportDecl
fn clone(&self) -> ImportDecl
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 ImportDecl
impl Debug for ImportDecl
sourceimpl<'de> Deserialize<'de> for ImportDecl
impl<'de> Deserialize<'de> for ImportDecl
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 ImportDecl
impl EqIgnoreSpan for ImportDecl
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl From<ImportDecl> for ModuleDecl
impl From<ImportDecl> for ModuleDecl
sourcefn from(v: ImportDecl) -> Self
fn from(v: ImportDecl) -> Self
Converts to this type from the input type.
sourceimpl Hash for ImportDecl
impl Hash for ImportDecl
sourceimpl PartialEq<ImportDecl> for ImportDecl
impl PartialEq<ImportDecl> for ImportDecl
sourcefn eq(&self, other: &ImportDecl) -> bool
fn eq(&self, other: &ImportDecl) -> bool
sourceimpl Serialize for ImportDecl
impl Serialize for ImportDecl
sourceimpl Spanned for ImportDecl
impl Spanned for ImportDecl
sourceimpl Take for ImportDecl
impl Take for ImportDecl
impl Eq for ImportDecl
impl StructuralEq for ImportDecl
impl StructuralPartialEq for ImportDecl
Auto Trait Implementations
impl RefUnwindSafe for ImportDecl
impl Send for ImportDecl
impl Sync for ImportDecl
impl Unpin for ImportDecl
impl UnwindSafe for ImportDecl
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