Enum Stmt
#[repr(u32)]pub enum Stmt {
Show 19 variants
Block(BlockStmt),
Empty(EmptyStmt),
Debugger(DebuggerStmt),
With(WithStmt),
Return(ReturnStmt),
Labeled(LabeledStmt),
Break(BreakStmt),
Continue(ContinueStmt),
If(IfStmt),
Switch(SwitchStmt),
Throw(ThrowStmt),
Try(Box<TryStmt>),
While(WhileStmt),
DoWhile(DoWhileStmt),
For(ForStmt),
ForIn(ForInStmt),
ForOf(ForOfStmt),
Decl(Decl),
Expr(ExprStmt),
}__ecma and ecma_ast only.Variants§
Block(BlockStmt)
Empty(EmptyStmt)
Debugger(DebuggerStmt)
With(WithStmt)
Return(ReturnStmt)
Labeled(LabeledStmt)
Break(BreakStmt)
Continue(ContinueStmt)
If(IfStmt)
Switch(SwitchStmt)
Throw(ThrowStmt)
Try(Box<TryStmt>)
A try statement. If handler is null then finalizer must be a BlockStmt.
While(WhileStmt)
DoWhile(DoWhileStmt)
For(ForStmt)
ForIn(ForInStmt)
ForOf(ForOfStmt)
Decl(Decl)
Expr(ExprStmt)
Implementations§
§impl Stmt
impl Stmt
pub fn as_block(&self) -> Option<&BlockStmt>
pub fn as_block(&self) -> Option<&BlockStmt>
Returns Some if self is a reference of variant Block, and None otherwise.
pub fn as_mut_block(&mut self) -> Option<&mut BlockStmt>
pub fn as_mut_block(&mut self) -> Option<&mut BlockStmt>
Returns Some if self is a mutable reference of variant Block, and None otherwise.
pub fn expect_block(self) -> BlockStmt
pub fn expect_block(self) -> BlockStmt
pub fn block(self) -> Option<BlockStmt>
pub fn block(self) -> Option<BlockStmt>
Returns Some if self is of variant Block, and None otherwise.
pub fn as_empty(&self) -> Option<&EmptyStmt>
pub fn as_empty(&self) -> Option<&EmptyStmt>
Returns Some if self is a reference of variant Empty, and None otherwise.
pub fn as_mut_empty(&mut self) -> Option<&mut EmptyStmt>
pub fn as_mut_empty(&mut self) -> Option<&mut EmptyStmt>
Returns Some if self is a mutable reference of variant Empty, and None otherwise.
pub fn expect_empty(self) -> EmptyStmt
pub fn expect_empty(self) -> EmptyStmt
pub fn empty(self) -> Option<EmptyStmt>
pub fn empty(self) -> Option<EmptyStmt>
Returns Some if self is of variant Empty, and None otherwise.
pub const fn is_debugger(&self) -> bool
pub const fn is_debugger(&self) -> bool
Returns true if self is of variant Debugger.
pub fn as_debugger(&self) -> Option<&DebuggerStmt>
pub fn as_debugger(&self) -> Option<&DebuggerStmt>
Returns Some if self is a reference of variant Debugger, and None otherwise.
pub fn as_mut_debugger(&mut self) -> Option<&mut DebuggerStmt>
pub fn as_mut_debugger(&mut self) -> Option<&mut DebuggerStmt>
Returns Some if self is a mutable reference of variant Debugger, and None otherwise.
pub fn expect_debugger(self) -> DebuggerStmt
pub fn expect_debugger(self) -> DebuggerStmt
pub fn debugger(self) -> Option<DebuggerStmt>
pub fn debugger(self) -> Option<DebuggerStmt>
Returns Some if self is of variant Debugger, and None otherwise.
pub fn as_with(&self) -> Option<&WithStmt>
pub fn as_with(&self) -> Option<&WithStmt>
Returns Some if self is a reference of variant With, and None otherwise.
pub fn as_mut_with(&mut self) -> Option<&mut WithStmt>
pub fn as_mut_with(&mut self) -> Option<&mut WithStmt>
Returns Some if self is a mutable reference of variant With, and None otherwise.
pub fn expect_with(self) -> WithStmt
pub fn expect_with(self) -> WithStmt
pub const fn is_return_stmt(&self) -> bool
pub const fn is_return_stmt(&self) -> bool
Returns true if self is of variant Return.
pub fn as_return_stmt(&self) -> Option<&ReturnStmt>
pub fn as_return_stmt(&self) -> Option<&ReturnStmt>
Returns Some if self is a reference of variant Return, and None otherwise.
pub fn as_mut_return_stmt(&mut self) -> Option<&mut ReturnStmt>
pub fn as_mut_return_stmt(&mut self) -> Option<&mut ReturnStmt>
Returns Some if self is a mutable reference of variant Return, and None otherwise.
pub fn expect_return_stmt(self) -> ReturnStmt
pub fn expect_return_stmt(self) -> ReturnStmt
pub fn return_stmt(self) -> Option<ReturnStmt>
pub fn return_stmt(self) -> Option<ReturnStmt>
Returns Some if self is of variant Return, and None otherwise.
pub const fn is_labeled(&self) -> bool
pub const fn is_labeled(&self) -> bool
Returns true if self is of variant Labeled.
pub fn as_labeled(&self) -> Option<&LabeledStmt>
pub fn as_labeled(&self) -> Option<&LabeledStmt>
Returns Some if self is a reference of variant Labeled, and None otherwise.
pub fn as_mut_labeled(&mut self) -> Option<&mut LabeledStmt>
pub fn as_mut_labeled(&mut self) -> Option<&mut LabeledStmt>
Returns Some if self is a mutable reference of variant Labeled, and None otherwise.
pub fn expect_labeled(self) -> LabeledStmt
pub fn expect_labeled(self) -> LabeledStmt
pub fn labeled(self) -> Option<LabeledStmt>
pub fn labeled(self) -> Option<LabeledStmt>
Returns Some if self is of variant Labeled, and None otherwise.
pub const fn is_break_stmt(&self) -> bool
pub const fn is_break_stmt(&self) -> bool
Returns true if self is of variant Break.
pub fn as_break_stmt(&self) -> Option<&BreakStmt>
pub fn as_break_stmt(&self) -> Option<&BreakStmt>
Returns Some if self is a reference of variant Break, and None otherwise.
pub fn as_mut_break_stmt(&mut self) -> Option<&mut BreakStmt>
pub fn as_mut_break_stmt(&mut self) -> Option<&mut BreakStmt>
Returns Some if self is a mutable reference of variant Break, and None otherwise.
pub fn expect_break_stmt(self) -> BreakStmt
pub fn expect_break_stmt(self) -> BreakStmt
pub fn break_stmt(self) -> Option<BreakStmt>
pub fn break_stmt(self) -> Option<BreakStmt>
Returns Some if self is of variant Break, and None otherwise.
pub const fn is_continue_stmt(&self) -> bool
pub const fn is_continue_stmt(&self) -> bool
Returns true if self is of variant Continue.
pub fn as_continue_stmt(&self) -> Option<&ContinueStmt>
pub fn as_continue_stmt(&self) -> Option<&ContinueStmt>
Returns Some if self is a reference of variant Continue, and None otherwise.
pub fn as_mut_continue_stmt(&mut self) -> Option<&mut ContinueStmt>
pub fn as_mut_continue_stmt(&mut self) -> Option<&mut ContinueStmt>
Returns Some if self is a mutable reference of variant Continue, and None otherwise.
pub fn expect_continue_stmt(self) -> ContinueStmt
pub fn expect_continue_stmt(self) -> ContinueStmt
pub fn continue_stmt(self) -> Option<ContinueStmt>
pub fn continue_stmt(self) -> Option<ContinueStmt>
Returns Some if self is of variant Continue, and None otherwise.
pub const fn is_if_stmt(&self) -> bool
pub const fn is_if_stmt(&self) -> bool
Returns true if self is of variant If.
pub fn as_if_stmt(&self) -> Option<&IfStmt>
pub fn as_if_stmt(&self) -> Option<&IfStmt>
Returns Some if self is a reference of variant If, and None otherwise.
pub fn as_mut_if_stmt(&mut self) -> Option<&mut IfStmt>
pub fn as_mut_if_stmt(&mut self) -> Option<&mut IfStmt>
Returns Some if self is a mutable reference of variant If, and None otherwise.
pub fn expect_if_stmt(self) -> IfStmt
pub fn expect_if_stmt(self) -> IfStmt
pub fn as_switch(&self) -> Option<&SwitchStmt>
pub fn as_switch(&self) -> Option<&SwitchStmt>
Returns Some if self is a reference of variant Switch, and None otherwise.
pub fn as_mut_switch(&mut self) -> Option<&mut SwitchStmt>
pub fn as_mut_switch(&mut self) -> Option<&mut SwitchStmt>
Returns Some if self is a mutable reference of variant Switch, and None otherwise.
pub fn expect_switch(self) -> SwitchStmt
pub fn expect_switch(self) -> SwitchStmt
pub fn switch(self) -> Option<SwitchStmt>
pub fn switch(self) -> Option<SwitchStmt>
Returns Some if self is of variant Switch, and None otherwise.
pub fn as_throw(&self) -> Option<&ThrowStmt>
pub fn as_throw(&self) -> Option<&ThrowStmt>
Returns Some if self is a reference of variant Throw, and None otherwise.
pub fn as_mut_throw(&mut self) -> Option<&mut ThrowStmt>
pub fn as_mut_throw(&mut self) -> Option<&mut ThrowStmt>
Returns Some if self is a mutable reference of variant Throw, and None otherwise.
pub fn expect_throw(self) -> ThrowStmt
pub fn expect_throw(self) -> ThrowStmt
pub fn throw(self) -> Option<ThrowStmt>
pub fn throw(self) -> Option<ThrowStmt>
Returns Some if self is of variant Throw, and None otherwise.
pub const fn is_try_stmt(&self) -> bool
pub const fn is_try_stmt(&self) -> bool
Returns true if self is of variant Try.
pub fn as_try_stmt(&self) -> Option<&Box<TryStmt>>
pub fn as_try_stmt(&self) -> Option<&Box<TryStmt>>
Returns Some if self is a reference of variant Try, and None otherwise.
pub fn as_mut_try_stmt(&mut self) -> Option<&mut Box<TryStmt>>
pub fn as_mut_try_stmt(&mut self) -> Option<&mut Box<TryStmt>>
Returns Some if self is a mutable reference of variant Try, and None otherwise.
pub fn expect_try_stmt(self) -> Box<TryStmt>
pub fn expect_try_stmt(self) -> Box<TryStmt>
pub fn try_stmt(self) -> Option<Box<TryStmt>>
pub fn try_stmt(self) -> Option<Box<TryStmt>>
Returns Some if self is of variant Try, and None otherwise.
pub const fn is_while_stmt(&self) -> bool
pub const fn is_while_stmt(&self) -> bool
Returns true if self is of variant While.
pub fn as_while_stmt(&self) -> Option<&WhileStmt>
pub fn as_while_stmt(&self) -> Option<&WhileStmt>
Returns Some if self is a reference of variant While, and None otherwise.
pub fn as_mut_while_stmt(&mut self) -> Option<&mut WhileStmt>
pub fn as_mut_while_stmt(&mut self) -> Option<&mut WhileStmt>
Returns Some if self is a mutable reference of variant While, and None otherwise.
pub fn expect_while_stmt(self) -> WhileStmt
pub fn expect_while_stmt(self) -> WhileStmt
pub fn while_stmt(self) -> Option<WhileStmt>
pub fn while_stmt(self) -> Option<WhileStmt>
Returns Some if self is of variant While, and None otherwise.
pub const fn is_do_while(&self) -> bool
pub const fn is_do_while(&self) -> bool
Returns true if self is of variant DoWhile.
pub fn as_do_while(&self) -> Option<&DoWhileStmt>
pub fn as_do_while(&self) -> Option<&DoWhileStmt>
Returns Some if self is a reference of variant DoWhile, and None otherwise.
pub fn as_mut_do_while(&mut self) -> Option<&mut DoWhileStmt>
pub fn as_mut_do_while(&mut self) -> Option<&mut DoWhileStmt>
Returns Some if self is a mutable reference of variant DoWhile, and None otherwise.
pub fn expect_do_while(self) -> DoWhileStmt
pub fn expect_do_while(self) -> DoWhileStmt
pub fn do_while(self) -> Option<DoWhileStmt>
pub fn do_while(self) -> Option<DoWhileStmt>
Returns Some if self is of variant DoWhile, and None otherwise.
pub const fn is_for_stmt(&self) -> bool
pub const fn is_for_stmt(&self) -> bool
Returns true if self is of variant For.
pub fn as_for_stmt(&self) -> Option<&ForStmt>
pub fn as_for_stmt(&self) -> Option<&ForStmt>
Returns Some if self is a reference of variant For, and None otherwise.
pub fn as_mut_for_stmt(&mut self) -> Option<&mut ForStmt>
pub fn as_mut_for_stmt(&mut self) -> Option<&mut ForStmt>
Returns Some if self is a mutable reference of variant For, and None otherwise.
pub fn expect_for_stmt(self) -> ForStmt
pub fn expect_for_stmt(self) -> ForStmt
pub fn as_for_in(&self) -> Option<&ForInStmt>
pub fn as_for_in(&self) -> Option<&ForInStmt>
Returns Some if self is a reference of variant ForIn, and None otherwise.
pub fn as_mut_for_in(&mut self) -> Option<&mut ForInStmt>
pub fn as_mut_for_in(&mut self) -> Option<&mut ForInStmt>
Returns Some if self is a mutable reference of variant ForIn, and None otherwise.
pub fn expect_for_in(self) -> ForInStmt
pub fn expect_for_in(self) -> ForInStmt
pub fn for_in(self) -> Option<ForInStmt>
pub fn for_in(self) -> Option<ForInStmt>
Returns Some if self is of variant ForIn, and None otherwise.
pub fn as_for_of(&self) -> Option<&ForOfStmt>
pub fn as_for_of(&self) -> Option<&ForOfStmt>
Returns Some if self is a reference of variant ForOf, and None otherwise.
pub fn as_mut_for_of(&mut self) -> Option<&mut ForOfStmt>
pub fn as_mut_for_of(&mut self) -> Option<&mut ForOfStmt>
Returns Some if self is a mutable reference of variant ForOf, and None otherwise.
pub fn expect_for_of(self) -> ForOfStmt
pub fn expect_for_of(self) -> ForOfStmt
pub fn for_of(self) -> Option<ForOfStmt>
pub fn for_of(self) -> Option<ForOfStmt>
Returns Some if self is of variant ForOf, and None otherwise.
pub fn as_decl(&self) -> Option<&Decl>
pub fn as_decl(&self) -> Option<&Decl>
Returns Some if self is a reference of variant Decl, and None otherwise.
pub fn as_mut_decl(&mut self) -> Option<&mut Decl>
pub fn as_mut_decl(&mut self) -> Option<&mut Decl>
Returns Some if self is a mutable reference of variant Decl, and None otherwise.
pub fn expect_decl(self) -> Decl
pub fn expect_decl(self) -> Decl
pub fn as_expr(&self) -> Option<&ExprStmt>
pub fn as_expr(&self) -> Option<&ExprStmt>
Returns Some if self is a reference of variant Expr, and None otherwise.
pub fn as_mut_expr(&mut self) -> Option<&mut ExprStmt>
pub fn as_mut_expr(&mut self) -> Option<&mut ExprStmt>
Returns Some if self is a mutable reference of variant Expr, and None otherwise.
pub fn expect_expr(self) -> ExprStmt
pub fn expect_expr(self) -> ExprStmt
§impl Stmt
impl Stmt
pub fn is_use_strict(&self) -> bool
pub fn can_precede_directive(&self) -> bool
pub fn can_precede_directive(&self) -> bool
Returns true if the statement does not prevent the directives below
self from being directives.
Trait Implementations§
§impl Archive for Stmt
impl Archive for Stmt
§type Archived = ArchivedStmt
type Archived = ArchivedStmt
§type Resolver = StmtResolver
type Resolver = StmtResolver
§fn resolve(
&self,
resolver: <Stmt as Archive>::Resolver,
out: Place<<Stmt as Archive>::Archived>,
)
fn resolve( &self, resolver: <Stmt as Archive>::Resolver, out: Place<<Stmt as Archive>::Archived>, )
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
serialize. Read more§impl<'de> Deserialize<'de> for Stmt
impl<'de> Deserialize<'de> for Stmt
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Stmt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Stmt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl<__D> Deserialize<Stmt, __D> for <Stmt as Archive>::Archivedwhere
__D: Fallible + ?Sized,
<__D as Fallible>::Error: Source,
impl<__D> Deserialize<Stmt, __D> for <Stmt as Archive>::Archivedwhere
__D: Fallible + ?Sized,
<__D as Fallible>::Error: Source,
§fn deserialize(
&self,
deserializer: &mut __D,
) -> Result<Stmt, <__D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut __D, ) -> Result<Stmt, <__D as Fallible>::Error>
§impl EqIgnoreSpan for Stmt
impl EqIgnoreSpan for Stmt
fn eq_ignore_span(&self, other: &Stmt) -> bool
§impl<V> FoldWith<V> for Stmt
impl<V> FoldWith<V> for Stmt
§fn fold_with(self, visitor: &mut V) -> Stmt
fn fold_with(self, visitor: &mut V) -> Stmt
Calls Fold::fold_stmt with self.
§fn fold_children_with(self, visitor: &mut V) -> Stmt
fn fold_children_with(self, visitor: &mut V) -> Stmt
self`` with visitor`.§impl From<Box<TsEnumDecl>> for Stmt
impl From<Box<TsEnumDecl>> for Stmt
§fn from(src: Box<TsEnumDecl>) -> Stmt
fn from(src: Box<TsEnumDecl>) -> Stmt
§impl From<Box<TsInterfaceDecl>> for Stmt
impl From<Box<TsInterfaceDecl>> for Stmt
§fn from(src: Box<TsInterfaceDecl>) -> Stmt
fn from(src: Box<TsInterfaceDecl>) -> Stmt
§impl From<Box<TsModuleDecl>> for Stmt
impl From<Box<TsModuleDecl>> for Stmt
§fn from(src: Box<TsModuleDecl>) -> Stmt
fn from(src: Box<TsModuleDecl>) -> Stmt
§impl From<Box<TsTypeAliasDecl>> for Stmt
impl From<Box<TsTypeAliasDecl>> for Stmt
§fn from(src: Box<TsTypeAliasDecl>) -> Stmt
fn from(src: Box<TsTypeAliasDecl>) -> Stmt
§impl From<ContinueStmt> for Box<Stmt>
impl From<ContinueStmt> for Box<Stmt>
§fn from(src: ContinueStmt) -> Box<Stmt>
fn from(src: ContinueStmt) -> Box<Stmt>
§impl From<ContinueStmt> for Stmt
impl From<ContinueStmt> for Stmt
§fn from(v: ContinueStmt) -> Stmt
fn from(v: ContinueStmt) -> Stmt
§impl From<DebuggerStmt> for Box<Stmt>
impl From<DebuggerStmt> for Box<Stmt>
§fn from(src: DebuggerStmt) -> Box<Stmt>
fn from(src: DebuggerStmt) -> Box<Stmt>
§impl From<DebuggerStmt> for Stmt
impl From<DebuggerStmt> for Stmt
§fn from(v: DebuggerStmt) -> Stmt
fn from(v: DebuggerStmt) -> Stmt
§impl From<DoWhileStmt> for Box<Stmt>
impl From<DoWhileStmt> for Box<Stmt>
§fn from(src: DoWhileStmt) -> Box<Stmt>
fn from(src: DoWhileStmt) -> Box<Stmt>
§impl From<DoWhileStmt> for Stmt
impl From<DoWhileStmt> for Stmt
§fn from(v: DoWhileStmt) -> Stmt
fn from(v: DoWhileStmt) -> Stmt
§impl From<LabeledStmt> for Box<Stmt>
impl From<LabeledStmt> for Box<Stmt>
§fn from(src: LabeledStmt) -> Box<Stmt>
fn from(src: LabeledStmt) -> Box<Stmt>
§impl From<LabeledStmt> for Stmt
impl From<LabeledStmt> for Stmt
§fn from(v: LabeledStmt) -> Stmt
fn from(v: LabeledStmt) -> Stmt
§impl From<ReturnStmt> for Box<Stmt>
impl From<ReturnStmt> for Box<Stmt>
§fn from(src: ReturnStmt) -> Box<Stmt>
fn from(src: ReturnStmt) -> Box<Stmt>
§impl From<ReturnStmt> for Stmt
impl From<ReturnStmt> for Stmt
§fn from(v: ReturnStmt) -> Stmt
fn from(v: ReturnStmt) -> Stmt
§impl From<Stmt> for ModuleItem
impl From<Stmt> for ModuleItem
§fn from(v: Stmt) -> ModuleItem
fn from(v: Stmt) -> ModuleItem
§impl From<SwitchStmt> for Box<Stmt>
impl From<SwitchStmt> for Box<Stmt>
§fn from(src: SwitchStmt) -> Box<Stmt>
fn from(src: SwitchStmt) -> Box<Stmt>
§impl From<SwitchStmt> for Stmt
impl From<SwitchStmt> for Stmt
§fn from(v: SwitchStmt) -> Stmt
fn from(v: SwitchStmt) -> Stmt
§impl From<TsEnumDecl> for Box<Stmt>
impl From<TsEnumDecl> for Box<Stmt>
§fn from(src: TsEnumDecl) -> Box<Stmt>
fn from(src: TsEnumDecl) -> Box<Stmt>
§impl From<TsEnumDecl> for Stmt
impl From<TsEnumDecl> for Stmt
§fn from(src: TsEnumDecl) -> Stmt
fn from(src: TsEnumDecl) -> Stmt
§impl From<TsInterfaceDecl> for Box<Stmt>
impl From<TsInterfaceDecl> for Box<Stmt>
§fn from(src: TsInterfaceDecl) -> Box<Stmt>
fn from(src: TsInterfaceDecl) -> Box<Stmt>
§impl From<TsInterfaceDecl> for Stmt
impl From<TsInterfaceDecl> for Stmt
§fn from(src: TsInterfaceDecl) -> Stmt
fn from(src: TsInterfaceDecl) -> Stmt
§impl From<TsModuleDecl> for Box<Stmt>
impl From<TsModuleDecl> for Box<Stmt>
§fn from(src: TsModuleDecl) -> Box<Stmt>
fn from(src: TsModuleDecl) -> Box<Stmt>
§impl From<TsModuleDecl> for Stmt
impl From<TsModuleDecl> for Stmt
§fn from(src: TsModuleDecl) -> Stmt
fn from(src: TsModuleDecl) -> Stmt
§impl From<TsTypeAliasDecl> for Box<Stmt>
impl From<TsTypeAliasDecl> for Box<Stmt>
§fn from(src: TsTypeAliasDecl) -> Box<Stmt>
fn from(src: TsTypeAliasDecl) -> Box<Stmt>
§impl From<TsTypeAliasDecl> for Stmt
impl From<TsTypeAliasDecl> for Stmt
§fn from(src: TsTypeAliasDecl) -> Stmt
fn from(src: TsTypeAliasDecl) -> Stmt
§impl IsDirective for Stmt
impl IsDirective for Stmt
fn as_ref(&self) -> Option<&Stmt>
fn directive_continue(&self) -> bool
fn is_use_strict(&self) -> bool
§impl ModuleItemLike for Stmt
impl ModuleItemLike for Stmt
fn try_into_module_decl(self) -> Result<ModuleDecl, Self>
fn try_from_module_decl(decl: ModuleDecl) -> Result<Self, ModuleDecl>
§impl Node for Stmt
impl Node for Stmt
fn emit_with<W, S>(&self, emitter: &mut Emitter<'_, W, S>) -> Result<(), Error>where
W: WriteJs,
S: SourceMapper + SourceMapperExt,
§impl<__S> Serialize<__S> for Stmtwhere
__S: Fallible + Writer + Allocator + ?Sized,
<__S as Fallible>::Error: Source,
impl<__S> Serialize<__S> for Stmtwhere
__S: Fallible + Writer + Allocator + ?Sized,
<__S as Fallible>::Error: Source,
§impl Serialize for Stmt
impl Serialize for Stmt
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
§impl StartsWithAlphaNum for Stmt
impl StartsWithAlphaNum for Stmt
fn starts_with_alpha_num(&self) -> bool
§impl StmtExt for Box<Stmt>
impl StmtExt for Box<Stmt>
fn as_stmt(&self) -> &Stmt
§fn extract_var_ids(&self) -> Vec<Ident>
fn extract_var_ids(&self) -> Vec<Ident>
fn extract_var_ids_as_var(&self) -> Option<VarDecl>
§fn terminates(&self) -> bool
fn terminates(&self) -> bool
fn may_have_side_effects(&self, ctx: ExprCtx) -> bool
§impl StmtExt for Stmt
impl StmtExt for Stmt
fn as_stmt(&self) -> &Stmt
§fn extract_var_ids(&self) -> Vec<Ident>
fn extract_var_ids(&self) -> Vec<Ident>
fn extract_var_ids_as_var(&self) -> Option<VarDecl>
§fn terminates(&self) -> bool
fn terminates(&self) -> bool
fn may_have_side_effects(&self, ctx: ExprCtx) -> bool
§impl StmtOrModuleItem for Stmt
impl StmtOrModuleItem for Stmt
fn into_stmt(self) -> Result<Stmt, ModuleDecl>
fn as_stmt(&self) -> Result<&Stmt, &ModuleDecl>
fn as_stmt_mut(&mut self) -> Result<&mut Stmt, &mut ModuleDecl>
fn from_stmt(stmt: Stmt) -> Stmt
fn try_from_module_decl(decl: ModuleDecl) -> Result<Stmt, ModuleDecl>
§impl<V> VisitMutWith<V> for Stmt
impl<V> VisitMutWith<V> for Stmt
§fn visit_mut_with(&mut self, visitor: &mut V)
fn visit_mut_with(&mut self, visitor: &mut V)
Calls VisitMut::visit_mut_stmt with self.
§fn visit_mut_children_with(&mut self, visitor: &mut V)
fn visit_mut_children_with(&mut self, visitor: &mut V)
self`` with visitor`.§impl<V> VisitWith<V> for Stmt
impl<V> VisitWith<V> for Stmt
§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_stmt with self.
§fn visit_children_with(&self, visitor: &mut V)
fn visit_children_with(&self, visitor: &mut V)
self`` with visitor`.impl Eq for Stmt
impl StructuralPartialEq for Stmt
Auto Trait Implementations§
impl Freeze for Stmt
impl RefUnwindSafe for Stmt
impl Send for Stmt
impl Sync for Stmt
impl Unpin for Stmt
impl UnwindSafe for Stmt
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
§impl<T> ArchiveUnsized for Twhere
T: Archive,
impl<T> ArchiveUnsized for Twhere
T: Archive,
§type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::Archived
Archive, it may be
unsized. Read more§fn archived_metadata(
&self,
) -> <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
fn archived_metadata( &self, ) -> <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Conv for T
impl<T> Conv for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
Source§impl<T> ImplicitClone for Twhere
T: Clone,
impl<T> ImplicitClone for Twhere
T: Clone,
Source§fn clone_quote_var(&self) -> Self
fn clone_quote_var(&self) -> Self
ecma_quote only.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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> ⓘ
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> ⓘ
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 more§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2where
T: SharedNiching<N1, N2>,
N1: Niching<T>,
N2: Niching<T>,
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2where
T: SharedNiching<N1, N2>,
N1: Niching<T>,
N2: Niching<T>,
§impl<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg or
a color-specific method, such as OwoColorize::green, Read more§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg or
a color-specific method, such as OwoColorize::on_yellow, Read more§fn fg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
§fn bg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
§fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
§fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Pointee for T
impl<T> Pointee for T
§impl<T, S> SerializeUnsized<S> for Twhere
T: Serialize<S>,
S: Fallible + Writer + ?Sized,
impl<T, S> SerializeUnsized<S> for Twhere
T: Serialize<S>,
S: Fallible + Writer + ?Sized,
§fn serialize_unsized(
&self,
serializer: &mut S,
) -> Result<usize, <S as Fallible>::Error>
fn serialize_unsized( &self, serializer: &mut S, ) -> Result<usize, <S as Fallible>::Error>
§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
§fn comment_range(&self) -> Span
fn comment_range(&self) -> Span
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.