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