Struct swc_ecma_ast::TsExportAssignment
source · [−]Expand description
TypeScript’s own parser uses ExportAssignment for both export default
and
export =
. But for @babel/parser, export default
is an ExportDefaultDecl,
so a TsExportAssignment is always export =
.
Fields
span: Span
expr: Box<Expr>
Trait Implementations
sourceimpl Clone for TsExportAssignment
impl Clone for TsExportAssignment
sourcefn clone(&self) -> TsExportAssignment
fn clone(&self) -> TsExportAssignment
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 TsExportAssignment
impl Debug for TsExportAssignment
sourceimpl<'de> Deserialize<'de> for TsExportAssignment
impl<'de> Deserialize<'de> for TsExportAssignment
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 TsExportAssignment
impl EqIgnoreSpan for TsExportAssignment
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl From<TsExportAssignment> for ModuleDecl
impl From<TsExportAssignment> for ModuleDecl
sourcefn from(v: TsExportAssignment) -> Self
fn from(v: TsExportAssignment) -> Self
Converts to this type from the input type.
sourceimpl Hash for TsExportAssignment
impl Hash for TsExportAssignment
sourceimpl PartialEq<TsExportAssignment> for TsExportAssignment
impl PartialEq<TsExportAssignment> for TsExportAssignment
sourcefn eq(&self, other: &TsExportAssignment) -> bool
fn eq(&self, other: &TsExportAssignment) -> bool
sourceimpl Serialize for TsExportAssignment
impl Serialize for TsExportAssignment
sourceimpl Spanned for TsExportAssignment
impl Spanned for TsExportAssignment
impl Eq for TsExportAssignment
impl StructuralEq for TsExportAssignment
impl StructuralPartialEq for TsExportAssignment
Auto Trait Implementations
impl RefUnwindSafe for TsExportAssignment
impl Send for TsExportAssignment
impl Sync for TsExportAssignment
impl Unpin for TsExportAssignment
impl UnwindSafe for TsExportAssignment
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