Struct swc_ecma_ast::TsEnumDecl
source · [−]pub struct TsEnumDecl {
pub span: Span,
pub declare: bool,
pub is_const: bool,
pub id: Ident,
pub members: Vec<TsEnumMember>,
}
Fields
span: Span
declare: bool
is_const: bool
id: Ident
members: Vec<TsEnumMember>
Trait Implementations
sourceimpl Clone for TsEnumDecl
impl Clone for TsEnumDecl
sourcefn clone(&self) -> TsEnumDecl
fn clone(&self) -> TsEnumDecl
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 TsEnumDecl
impl Debug for TsEnumDecl
sourceimpl<'de> Deserialize<'de> for TsEnumDecl
impl<'de> Deserialize<'de> for TsEnumDecl
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 TsEnumDecl
impl EqIgnoreSpan for TsEnumDecl
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl From<TsEnumDecl> for Decl
impl From<TsEnumDecl> for Decl
sourcefn from(src: TsEnumDecl) -> Decl
fn from(src: TsEnumDecl) -> Decl
Converts to this type from the input type.
sourceimpl From<TsEnumDecl> for ModuleItem
impl From<TsEnumDecl> for ModuleItem
sourcefn from(src: TsEnumDecl) -> ModuleItem
fn from(src: TsEnumDecl) -> ModuleItem
Converts to this type from the input type.
sourceimpl From<TsEnumDecl> for Stmt
impl From<TsEnumDecl> for Stmt
sourcefn from(src: TsEnumDecl) -> Stmt
fn from(src: TsEnumDecl) -> Stmt
Converts to this type from the input type.
sourceimpl Hash for TsEnumDecl
impl Hash for TsEnumDecl
sourceimpl PartialEq<TsEnumDecl> for TsEnumDecl
impl PartialEq<TsEnumDecl> for TsEnumDecl
sourcefn eq(&self, other: &TsEnumDecl) -> bool
fn eq(&self, other: &TsEnumDecl) -> bool
sourceimpl Serialize for TsEnumDecl
impl Serialize for TsEnumDecl
sourceimpl Spanned for TsEnumDecl
impl Spanned for TsEnumDecl
impl Eq for TsEnumDecl
impl StructuralEq for TsEnumDecl
impl StructuralPartialEq for TsEnumDecl
Auto Trait Implementations
impl RefUnwindSafe for TsEnumDecl
impl Send for TsEnumDecl
impl Sync for TsEnumDecl
impl Unpin for TsEnumDecl
impl UnwindSafe for TsEnumDecl
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