Enum stc_ts_ast_rnode::RModuleDecl
source · [−]pub enum RModuleDecl {
Import(RImportDecl),
ExportDecl(RExportDecl),
ExportNamed(RNamedExport),
ExportDefaultDecl(RExportDefaultDecl),
ExportDefaultExpr(RExportDefaultExpr),
ExportAll(RExportAll),
TsImportEquals(Box<RTsImportEqualsDecl>),
TsExportAssignment(RTsExportAssignment),
TsNamespaceExport(RTsNamespaceExportDecl),
}
Variants
Import(RImportDecl)
ExportDecl(RExportDecl)
ExportNamed(RNamedExport)
ExportDefaultDecl(RExportDefaultDecl)
ExportDefaultExpr(RExportDefaultExpr)
ExportAll(RExportAll)
TsImportEquals(Box<RTsImportEqualsDecl>)
TsExportAssignment(RTsExportAssignment)
TsNamespaceExport(RTsNamespaceExportDecl)
Trait Implementations
sourceimpl Clone for RModuleDecl
impl Clone for RModuleDecl
sourcefn clone(&self) -> RModuleDecl
fn clone(&self) -> RModuleDecl
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 RModuleDecl
impl Debug for RModuleDecl
sourceimpl<'de> Deserialize<'de> for RModuleDecl
impl<'de> Deserialize<'de> for RModuleDecl
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 RModuleDecl
impl EqIgnoreSpan for RModuleDecl
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl<V> FoldWith<V> for RModuleDeclwhere
V: ?Sized,
impl<V> FoldWith<V> for RModuleDeclwhere
V: ?Sized,
sourceimpl From<Box<RTsImportEqualsDecl, Global>> for RModuleDecl
impl From<Box<RTsImportEqualsDecl, Global>> for RModuleDecl
sourcefn from(v: Box<RTsImportEqualsDecl>) -> Self
fn from(v: Box<RTsImportEqualsDecl>) -> Self
Converts to this type from the input type.
sourceimpl From<RExportAll> for RModuleDecl
impl From<RExportAll> for RModuleDecl
sourcefn from(v: RExportAll) -> Self
fn from(v: RExportAll) -> Self
Converts to this type from the input type.
sourceimpl From<RExportDecl> for RModuleDecl
impl From<RExportDecl> for RModuleDecl
sourcefn from(v: RExportDecl) -> Self
fn from(v: RExportDecl) -> Self
Converts to this type from the input type.
sourceimpl From<RExportDefaultDecl> for RModuleDecl
impl From<RExportDefaultDecl> for RModuleDecl
sourcefn from(v: RExportDefaultDecl) -> Self
fn from(v: RExportDefaultDecl) -> Self
Converts to this type from the input type.
sourceimpl From<RExportDefaultExpr> for RModuleDecl
impl From<RExportDefaultExpr> for RModuleDecl
sourcefn from(v: RExportDefaultExpr) -> Self
fn from(v: RExportDefaultExpr) -> Self
Converts to this type from the input type.
sourceimpl From<RImportDecl> for RModuleDecl
impl From<RImportDecl> for RModuleDecl
sourcefn from(v: RImportDecl) -> Self
fn from(v: RImportDecl) -> Self
Converts to this type from the input type.
sourceimpl From<RModuleDecl> for RModuleItem
impl From<RModuleDecl> for RModuleItem
sourcefn from(v: RModuleDecl) -> Self
fn from(v: RModuleDecl) -> Self
Converts to this type from the input type.
sourceimpl From<RNamedExport> for RModuleDecl
impl From<RNamedExport> for RModuleDecl
sourcefn from(v: RNamedExport) -> Self
fn from(v: RNamedExport) -> Self
Converts to this type from the input type.
sourceimpl From<RTsExportAssignment> for RModuleDecl
impl From<RTsExportAssignment> for RModuleDecl
sourcefn from(v: RTsExportAssignment) -> Self
fn from(v: RTsExportAssignment) -> Self
Converts to this type from the input type.
sourceimpl From<RTsNamespaceExportDecl> for RModuleDecl
impl From<RTsNamespaceExportDecl> for RModuleDecl
sourcefn from(v: RTsNamespaceExportDecl) -> Self
fn from(v: RTsNamespaceExportDecl) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<RModuleDecl> for RModuleDecl
impl PartialEq<RModuleDecl> for RModuleDecl
sourcefn eq(&self, other: &RModuleDecl) -> bool
fn eq(&self, other: &RModuleDecl) -> bool
sourceimpl RNode for RModuleDecl
impl RNode for RModuleDecl
type Orig = ModuleDecl
fn from_orig(id_gen: &mut NodeIdGenerator, orig: Self::Orig) -> Self
fn into_orig(self) -> Self::Orig
sourceimpl Serialize for RModuleDecl
impl Serialize for RModuleDecl
sourceimpl Spanned for RModuleDecl
impl Spanned for RModuleDecl
sourceimpl<V> VisitMutWith<V> for RModuleDeclwhere
V: ?Sized,
impl<V> VisitMutWith<V> for RModuleDeclwhere
V: ?Sized,
fn visit_mut_children_with(&mut self, _visitor: &mut V)
fn visit_mut_with(&mut self, visitor: &mut V)where
V: VisitMut<Self>,
sourceimpl<V> VisitWith<V> for RModuleDeclwhere
V: ?Sized,
impl<V> VisitWith<V> for RModuleDeclwhere
V: ?Sized,
fn visit_children_with(&self, _visitor: &mut V)
fn visit_with(&self, visitor: &mut V)where
V: Visit<Self>,
impl StructuralPartialEq for RModuleDecl
impl Visitable for RModuleDecl
Auto Trait Implementations
impl RefUnwindSafe for RModuleDecl
impl Send for RModuleDecl
impl Sync for RModuleDecl
impl Unpin for RModuleDecl
impl UnwindSafe for RModuleDecl
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<R, N> IntoRNode<R> for Nwhere
R: RNode<Orig = N>,
impl<R, N> IntoRNode<R> for Nwhere
R: RNode<Orig = N>,
fn into_rnode(self, g: &mut NodeIdGenerator) -> R
sourceimpl<T> SpanExt for Twhere
T: Spanned,
impl<T> SpanExt for Twhere
T: Spanned,
fn is_synthesized(&self) -> bool
fn starts_on_new_line(&self, format: ListFormat) -> bool
sourcefn comment_range(&self) -> Span
fn comment_range(&self) -> Span
Gets a custom text range to use when emitting comments.