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§
Source§impl Clone for TsEnumDecl
impl Clone for TsEnumDecl
Source§fn clone(&self) -> TsEnumDecl
fn clone(&self) -> TsEnumDecl
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TsEnumDecl
impl Debug for TsEnumDecl
Source§impl EqIgnoreSpan for TsEnumDecl
impl EqIgnoreSpan for TsEnumDecl
fn eq_ignore_span(&self, other: &TsEnumDecl) -> bool
Source§impl<V> FoldWith<V> for TsEnumDecl
impl<V> FoldWith<V> for TsEnumDecl
Source§fn fold_with(self, visitor: &mut V) -> TsEnumDecl
fn fold_with(self, visitor: &mut V) -> TsEnumDecl
Calls Fold::fold_ts_enum_decl with self.
Source§fn fold_children_with(self, visitor: &mut V) -> TsEnumDecl
fn fold_children_with(self, visitor: &mut V) -> TsEnumDecl
Visit children nodes of
self`` with visitor`.Source§impl From<TsEnumDecl> for Decl
impl From<TsEnumDecl> for Decl
Source§fn from(src: TsEnumDecl) -> Decl
fn from(src: TsEnumDecl) -> Decl
Converts to this type from the input type.
Source§impl From<TsEnumDecl> for ModuleItem
impl From<TsEnumDecl> for ModuleItem
Source§fn from(src: TsEnumDecl) -> ModuleItem
fn from(src: TsEnumDecl) -> ModuleItem
Converts to this type from the input type.
Source§impl From<TsEnumDecl> for Stmt
impl From<TsEnumDecl> for Stmt
Source§fn from(src: TsEnumDecl) -> Stmt
fn from(src: TsEnumDecl) -> Stmt
Converts to this type from the input type.
Source§impl Hash for TsEnumDecl
impl Hash for TsEnumDecl
Source§impl Node for TsEnumDecl
impl Node for TsEnumDecl
Source§impl PartialEq for TsEnumDecl
impl PartialEq for TsEnumDecl
Source§impl Spanned for TsEnumDecl
impl Spanned for TsEnumDecl
Source§impl<V> VisitMutWith<V> for TsEnumDecl
impl<V> VisitMutWith<V> for TsEnumDecl
Source§fn visit_mut_with(&mut self, visitor: &mut V)
fn visit_mut_with(&mut self, visitor: &mut V)
Calls VisitMut::visit_mut_ts_enum_decl with self.
Source§fn visit_mut_children_with(&mut self, visitor: &mut V)
fn visit_mut_children_with(&mut self, visitor: &mut V)
Visit children nodes of
self`` with visitor`.Source§impl<V> VisitWith<V> for TsEnumDecl
impl<V> VisitWith<V> for TsEnumDecl
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_ts_enum_decl with self.
Source§fn visit_children_with(&self, visitor: &mut V)
fn visit_children_with(&self, visitor: &mut V)
Visit children nodes of
self`` with visitor`.impl Eq for TsEnumDecl
impl StructuralPartialEq for TsEnumDecl
Auto Trait Implementations§
impl Freeze for TsEnumDecl
impl RefUnwindSafe for TsEnumDecl
impl Send for TsEnumDecl
impl Sync for TsEnumDecl
impl Unpin for TsEnumDecl
impl UnwindSafe for TsEnumDecl
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> ImplicitClone for Twhere
T: Clone,
impl<T> ImplicitClone for Twhere
T: Clone,
fn clone_quote_var(&self) -> Self
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<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
Source§fn comment_range(&self) -> Span
fn comment_range(&self) -> Span
Gets a custom text range to use when emitting comments.