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 __visit
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 const fn is_block(&self) -> bool
Available on crate feature ecma_ast
only.
pub const fn is_block(&self) -> bool
ecma_ast
only.Returns true
if self
is of variant Block
.
pub fn as_block(&self) -> Option<&BlockStmt>
Available on crate feature ecma_ast
only.
pub fn as_block(&self) -> Option<&BlockStmt>
ecma_ast
only.Returns Some
if self
is a reference of variant Block
, and None
otherwise.
pub fn as_mut_block(&mut self) -> Option<&mut BlockStmt>
Available on crate feature ecma_ast
only.
pub fn as_mut_block(&mut self) -> Option<&mut BlockStmt>
ecma_ast
only.Returns Some
if self
is a mutable reference of variant Block
, and None
otherwise.
pub fn expect_block(self) -> BlockStmt
Available on crate feature ecma_ast
only.
pub fn expect_block(self) -> BlockStmt
ecma_ast
only.pub fn block(self) -> Option<BlockStmt>
Available on crate feature ecma_ast
only.
pub fn block(self) -> Option<BlockStmt>
ecma_ast
only.Returns Some
if self
is of variant Block
, and None
otherwise.
pub const fn is_empty(&self) -> bool
Available on crate feature ecma_ast
only.
pub const fn is_empty(&self) -> bool
ecma_ast
only.Returns true
if self
is of variant Empty
.
pub fn as_empty(&self) -> Option<&EmptyStmt>
Available on crate feature ecma_ast
only.
pub fn as_empty(&self) -> Option<&EmptyStmt>
ecma_ast
only.Returns Some
if self
is a reference of variant Empty
, and None
otherwise.
pub fn as_mut_empty(&mut self) -> Option<&mut EmptyStmt>
Available on crate feature ecma_ast
only.
pub fn as_mut_empty(&mut self) -> Option<&mut EmptyStmt>
ecma_ast
only.Returns Some
if self
is a mutable reference of variant Empty
, and None
otherwise.
pub fn expect_empty(self) -> EmptyStmt
Available on crate feature ecma_ast
only.
pub fn expect_empty(self) -> EmptyStmt
ecma_ast
only.pub fn empty(self) -> Option<EmptyStmt>
Available on crate feature ecma_ast
only.
pub fn empty(self) -> Option<EmptyStmt>
ecma_ast
only.Returns Some
if self
is of variant Empty
, and None
otherwise.
pub const fn is_debugger(&self) -> bool
Available on crate feature ecma_ast
only.
pub const fn is_debugger(&self) -> bool
ecma_ast
only.Returns true
if self
is of variant Debugger
.
pub fn as_debugger(&self) -> Option<&DebuggerStmt>
Available on crate feature ecma_ast
only.
pub fn as_debugger(&self) -> Option<&DebuggerStmt>
ecma_ast
only.Returns Some
if self
is a reference of variant Debugger
, and None
otherwise.
pub fn as_mut_debugger(&mut self) -> Option<&mut DebuggerStmt>
Available on crate feature ecma_ast
only.
pub fn as_mut_debugger(&mut self) -> Option<&mut DebuggerStmt>
ecma_ast
only.Returns Some
if self
is a mutable reference of variant Debugger
, and None
otherwise.
pub fn expect_debugger(self) -> DebuggerStmt
Available on crate feature ecma_ast
only.
pub fn expect_debugger(self) -> DebuggerStmt
ecma_ast
only.pub fn debugger(self) -> Option<DebuggerStmt>
Available on crate feature ecma_ast
only.
pub fn debugger(self) -> Option<DebuggerStmt>
ecma_ast
only.Returns Some
if self
is of variant Debugger
, and None
otherwise.
pub const fn is_with(&self) -> bool
Available on crate feature ecma_ast
only.
pub const fn is_with(&self) -> bool
ecma_ast
only.Returns true
if self
is of variant With
.
pub fn as_with(&self) -> Option<&WithStmt>
Available on crate feature ecma_ast
only.
pub fn as_with(&self) -> Option<&WithStmt>
ecma_ast
only.Returns Some
if self
is a reference of variant With
, and None
otherwise.
pub fn as_mut_with(&mut self) -> Option<&mut WithStmt>
Available on crate feature ecma_ast
only.
pub fn as_mut_with(&mut self) -> Option<&mut WithStmt>
ecma_ast
only.Returns Some
if self
is a mutable reference of variant With
, and None
otherwise.
pub fn expect_with(self) -> WithStmt
Available on crate feature ecma_ast
only.
pub fn expect_with(self) -> WithStmt
ecma_ast
only.pub fn with(self) -> Option<WithStmt>
Available on crate feature ecma_ast
only.
pub fn with(self) -> Option<WithStmt>
ecma_ast
only.Returns Some
if self
is of variant With
, and None
otherwise.
pub const fn is_return_stmt(&self) -> bool
Available on crate feature ecma_ast
only.
pub const fn is_return_stmt(&self) -> bool
ecma_ast
only.Returns true
if self
is of variant Return
.
pub fn as_return_stmt(&self) -> Option<&ReturnStmt>
Available on crate feature ecma_ast
only.
pub fn as_return_stmt(&self) -> Option<&ReturnStmt>
ecma_ast
only.Returns Some
if self
is a reference of variant Return
, and None
otherwise.
pub fn as_mut_return_stmt(&mut self) -> Option<&mut ReturnStmt>
Available on crate feature ecma_ast
only.
pub fn as_mut_return_stmt(&mut self) -> Option<&mut ReturnStmt>
ecma_ast
only.Returns Some
if self
is a mutable reference of variant Return
, and None
otherwise.
pub fn expect_return_stmt(self) -> ReturnStmt
Available on crate feature ecma_ast
only.
pub fn expect_return_stmt(self) -> ReturnStmt
ecma_ast
only.pub fn return_stmt(self) -> Option<ReturnStmt>
Available on crate feature ecma_ast
only.
pub fn return_stmt(self) -> Option<ReturnStmt>
ecma_ast
only.Returns Some
if self
is of variant Return
, and None
otherwise.
pub const fn is_labeled(&self) -> bool
Available on crate feature ecma_ast
only.
pub const fn is_labeled(&self) -> bool
ecma_ast
only.Returns true
if self
is of variant Labeled
.
pub fn as_labeled(&self) -> Option<&LabeledStmt>
Available on crate feature ecma_ast
only.
pub fn as_labeled(&self) -> Option<&LabeledStmt>
ecma_ast
only.Returns Some
if self
is a reference of variant Labeled
, and None
otherwise.
pub fn as_mut_labeled(&mut self) -> Option<&mut LabeledStmt>
Available on crate feature ecma_ast
only.
pub fn as_mut_labeled(&mut self) -> Option<&mut LabeledStmt>
ecma_ast
only.Returns Some
if self
is a mutable reference of variant Labeled
, and None
otherwise.
pub fn expect_labeled(self) -> LabeledStmt
Available on crate feature ecma_ast
only.
pub fn expect_labeled(self) -> LabeledStmt
ecma_ast
only.pub fn labeled(self) -> Option<LabeledStmt>
Available on crate feature ecma_ast
only.
pub fn labeled(self) -> Option<LabeledStmt>
ecma_ast
only.Returns Some
if self
is of variant Labeled
, and None
otherwise.
pub const fn is_break_stmt(&self) -> bool
Available on crate feature ecma_ast
only.
pub const fn is_break_stmt(&self) -> bool
ecma_ast
only.Returns true
if self
is of variant Break
.
pub fn as_break_stmt(&self) -> Option<&BreakStmt>
Available on crate feature ecma_ast
only.
pub fn as_break_stmt(&self) -> Option<&BreakStmt>
ecma_ast
only.Returns Some
if self
is a reference of variant Break
, and None
otherwise.
pub fn as_mut_break_stmt(&mut self) -> Option<&mut BreakStmt>
Available on crate feature ecma_ast
only.
pub fn as_mut_break_stmt(&mut self) -> Option<&mut BreakStmt>
ecma_ast
only.Returns Some
if self
is a mutable reference of variant Break
, and None
otherwise.
pub fn expect_break_stmt(self) -> BreakStmt
Available on crate feature ecma_ast
only.
pub fn expect_break_stmt(self) -> BreakStmt
ecma_ast
only.pub fn break_stmt(self) -> Option<BreakStmt>
Available on crate feature ecma_ast
only.
pub fn break_stmt(self) -> Option<BreakStmt>
ecma_ast
only.Returns Some
if self
is of variant Break
, and None
otherwise.
pub const fn is_continue_stmt(&self) -> bool
Available on crate feature ecma_ast
only.
pub const fn is_continue_stmt(&self) -> bool
ecma_ast
only.Returns true
if self
is of variant Continue
.
pub fn as_continue_stmt(&self) -> Option<&ContinueStmt>
Available on crate feature ecma_ast
only.
pub fn as_continue_stmt(&self) -> Option<&ContinueStmt>
ecma_ast
only.Returns Some
if self
is a reference of variant Continue
, and None
otherwise.
pub fn as_mut_continue_stmt(&mut self) -> Option<&mut ContinueStmt>
Available on crate feature ecma_ast
only.
pub fn as_mut_continue_stmt(&mut self) -> Option<&mut ContinueStmt>
ecma_ast
only.Returns Some
if self
is a mutable reference of variant Continue
, and None
otherwise.
pub fn expect_continue_stmt(self) -> ContinueStmt
Available on crate feature ecma_ast
only.
pub fn expect_continue_stmt(self) -> ContinueStmt
ecma_ast
only.pub fn continue_stmt(self) -> Option<ContinueStmt>
Available on crate feature ecma_ast
only.
pub fn continue_stmt(self) -> Option<ContinueStmt>
ecma_ast
only.Returns Some
if self
is of variant Continue
, and None
otherwise.
pub const fn is_if_stmt(&self) -> bool
Available on crate feature ecma_ast
only.
pub const fn is_if_stmt(&self) -> bool
ecma_ast
only.Returns true
if self
is of variant If
.
pub fn as_if_stmt(&self) -> Option<&IfStmt>
Available on crate feature ecma_ast
only.
pub fn as_if_stmt(&self) -> Option<&IfStmt>
ecma_ast
only.Returns Some
if self
is a reference of variant If
, and None
otherwise.
pub fn as_mut_if_stmt(&mut self) -> Option<&mut IfStmt>
Available on crate feature ecma_ast
only.
pub fn as_mut_if_stmt(&mut self) -> Option<&mut IfStmt>
ecma_ast
only.Returns Some
if self
is a mutable reference of variant If
, and None
otherwise.
pub fn expect_if_stmt(self) -> IfStmt
Available on crate feature ecma_ast
only.
pub fn expect_if_stmt(self) -> IfStmt
ecma_ast
only.pub fn if_stmt(self) -> Option<IfStmt>
Available on crate feature ecma_ast
only.
pub fn if_stmt(self) -> Option<IfStmt>
ecma_ast
only.Returns Some
if self
is of variant If
, and None
otherwise.
pub const fn is_switch(&self) -> bool
Available on crate feature ecma_ast
only.
pub const fn is_switch(&self) -> bool
ecma_ast
only.Returns true
if self
is of variant Switch
.
pub fn as_switch(&self) -> Option<&SwitchStmt>
Available on crate feature ecma_ast
only.
pub fn as_switch(&self) -> Option<&SwitchStmt>
ecma_ast
only.Returns Some
if self
is a reference of variant Switch
, and None
otherwise.
pub fn as_mut_switch(&mut self) -> Option<&mut SwitchStmt>
Available on crate feature ecma_ast
only.
pub fn as_mut_switch(&mut self) -> Option<&mut SwitchStmt>
ecma_ast
only.Returns Some
if self
is a mutable reference of variant Switch
, and None
otherwise.
pub fn expect_switch(self) -> SwitchStmt
Available on crate feature ecma_ast
only.
pub fn expect_switch(self) -> SwitchStmt
ecma_ast
only.pub fn switch(self) -> Option<SwitchStmt>
Available on crate feature ecma_ast
only.
pub fn switch(self) -> Option<SwitchStmt>
ecma_ast
only.Returns Some
if self
is of variant Switch
, and None
otherwise.
pub const fn is_throw(&self) -> bool
Available on crate feature ecma_ast
only.
pub const fn is_throw(&self) -> bool
ecma_ast
only.Returns true
if self
is of variant Throw
.
pub fn as_throw(&self) -> Option<&ThrowStmt>
Available on crate feature ecma_ast
only.
pub fn as_throw(&self) -> Option<&ThrowStmt>
ecma_ast
only.Returns Some
if self
is a reference of variant Throw
, and None
otherwise.
pub fn as_mut_throw(&mut self) -> Option<&mut ThrowStmt>
Available on crate feature ecma_ast
only.
pub fn as_mut_throw(&mut self) -> Option<&mut ThrowStmt>
ecma_ast
only.Returns Some
if self
is a mutable reference of variant Throw
, and None
otherwise.
pub fn expect_throw(self) -> ThrowStmt
Available on crate feature ecma_ast
only.
pub fn expect_throw(self) -> ThrowStmt
ecma_ast
only.pub fn throw(self) -> Option<ThrowStmt>
Available on crate feature ecma_ast
only.
pub fn throw(self) -> Option<ThrowStmt>
ecma_ast
only.Returns Some
if self
is of variant Throw
, and None
otherwise.
pub const fn is_try_stmt(&self) -> bool
Available on crate feature ecma_ast
only.
pub const fn is_try_stmt(&self) -> bool
ecma_ast
only.Returns true
if self
is of variant Try
.
pub fn as_try_stmt(&self) -> Option<&Box<TryStmt>>
Available on crate feature ecma_ast
only.
pub fn as_try_stmt(&self) -> Option<&Box<TryStmt>>
ecma_ast
only.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>>
Available on crate feature ecma_ast
only.
pub fn as_mut_try_stmt(&mut self) -> Option<&mut Box<TryStmt>>
ecma_ast
only.Returns Some
if self
is a mutable reference of variant Try
, and None
otherwise.
pub fn expect_try_stmt(self) -> Box<TryStmt>
Available on crate feature ecma_ast
only.
pub fn expect_try_stmt(self) -> Box<TryStmt>
ecma_ast
only.pub fn try_stmt(self) -> Option<Box<TryStmt>>
Available on crate feature ecma_ast
only.
pub fn try_stmt(self) -> Option<Box<TryStmt>>
ecma_ast
only.Returns Some
if self
is of variant Try
, and None
otherwise.
pub const fn is_while_stmt(&self) -> bool
Available on crate feature ecma_ast
only.
pub const fn is_while_stmt(&self) -> bool
ecma_ast
only.Returns true
if self
is of variant While
.
pub fn as_while_stmt(&self) -> Option<&WhileStmt>
Available on crate feature ecma_ast
only.
pub fn as_while_stmt(&self) -> Option<&WhileStmt>
ecma_ast
only.Returns Some
if self
is a reference of variant While
, and None
otherwise.
pub fn as_mut_while_stmt(&mut self) -> Option<&mut WhileStmt>
Available on crate feature ecma_ast
only.
pub fn as_mut_while_stmt(&mut self) -> Option<&mut WhileStmt>
ecma_ast
only.Returns Some
if self
is a mutable reference of variant While
, and None
otherwise.
pub fn expect_while_stmt(self) -> WhileStmt
Available on crate feature ecma_ast
only.
pub fn expect_while_stmt(self) -> WhileStmt
ecma_ast
only.pub fn while_stmt(self) -> Option<WhileStmt>
Available on crate feature ecma_ast
only.
pub fn while_stmt(self) -> Option<WhileStmt>
ecma_ast
only.Returns Some
if self
is of variant While
, and None
otherwise.
pub const fn is_do_while(&self) -> bool
Available on crate feature ecma_ast
only.
pub const fn is_do_while(&self) -> bool
ecma_ast
only.Returns true
if self
is of variant DoWhile
.
pub fn as_do_while(&self) -> Option<&DoWhileStmt>
Available on crate feature ecma_ast
only.
pub fn as_do_while(&self) -> Option<&DoWhileStmt>
ecma_ast
only.Returns Some
if self
is a reference of variant DoWhile
, and None
otherwise.
pub fn as_mut_do_while(&mut self) -> Option<&mut DoWhileStmt>
Available on crate feature ecma_ast
only.
pub fn as_mut_do_while(&mut self) -> Option<&mut DoWhileStmt>
ecma_ast
only.Returns Some
if self
is a mutable reference of variant DoWhile
, and None
otherwise.
pub fn expect_do_while(self) -> DoWhileStmt
Available on crate feature ecma_ast
only.
pub fn expect_do_while(self) -> DoWhileStmt
ecma_ast
only.pub fn do_while(self) -> Option<DoWhileStmt>
Available on crate feature ecma_ast
only.
pub fn do_while(self) -> Option<DoWhileStmt>
ecma_ast
only.Returns Some
if self
is of variant DoWhile
, and None
otherwise.
pub const fn is_for_stmt(&self) -> bool
Available on crate feature ecma_ast
only.
pub const fn is_for_stmt(&self) -> bool
ecma_ast
only.Returns true
if self
is of variant For
.
pub fn as_for_stmt(&self) -> Option<&ForStmt>
Available on crate feature ecma_ast
only.
pub fn as_for_stmt(&self) -> Option<&ForStmt>
ecma_ast
only.Returns Some
if self
is a reference of variant For
, and None
otherwise.
pub fn as_mut_for_stmt(&mut self) -> Option<&mut ForStmt>
Available on crate feature ecma_ast
only.
pub fn as_mut_for_stmt(&mut self) -> Option<&mut ForStmt>
ecma_ast
only.Returns Some
if self
is a mutable reference of variant For
, and None
otherwise.
pub fn expect_for_stmt(self) -> ForStmt
Available on crate feature ecma_ast
only.
pub fn expect_for_stmt(self) -> ForStmt
ecma_ast
only.pub fn for_stmt(self) -> Option<ForStmt>
Available on crate feature ecma_ast
only.
pub fn for_stmt(self) -> Option<ForStmt>
ecma_ast
only.Returns Some
if self
is of variant For
, and None
otherwise.
pub const fn is_for_in(&self) -> bool
Available on crate feature ecma_ast
only.
pub const fn is_for_in(&self) -> bool
ecma_ast
only.Returns true
if self
is of variant ForIn
.
pub fn as_for_in(&self) -> Option<&ForInStmt>
Available on crate feature ecma_ast
only.
pub fn as_for_in(&self) -> Option<&ForInStmt>
ecma_ast
only.Returns Some
if self
is a reference of variant ForIn
, and None
otherwise.
pub fn as_mut_for_in(&mut self) -> Option<&mut ForInStmt>
Available on crate feature ecma_ast
only.
pub fn as_mut_for_in(&mut self) -> Option<&mut ForInStmt>
ecma_ast
only.Returns Some
if self
is a mutable reference of variant ForIn
, and None
otherwise.
pub fn expect_for_in(self) -> ForInStmt
Available on crate feature ecma_ast
only.
pub fn expect_for_in(self) -> ForInStmt
ecma_ast
only.pub fn for_in(self) -> Option<ForInStmt>
Available on crate feature ecma_ast
only.
pub fn for_in(self) -> Option<ForInStmt>
ecma_ast
only.Returns Some
if self
is of variant ForIn
, and None
otherwise.
pub const fn is_for_of(&self) -> bool
Available on crate feature ecma_ast
only.
pub const fn is_for_of(&self) -> bool
ecma_ast
only.Returns true
if self
is of variant ForOf
.
pub fn as_for_of(&self) -> Option<&ForOfStmt>
Available on crate feature ecma_ast
only.
pub fn as_for_of(&self) -> Option<&ForOfStmt>
ecma_ast
only.Returns Some
if self
is a reference of variant ForOf
, and None
otherwise.
pub fn as_mut_for_of(&mut self) -> Option<&mut ForOfStmt>
Available on crate feature ecma_ast
only.
pub fn as_mut_for_of(&mut self) -> Option<&mut ForOfStmt>
ecma_ast
only.Returns Some
if self
is a mutable reference of variant ForOf
, and None
otherwise.
pub fn expect_for_of(self) -> ForOfStmt
Available on crate feature ecma_ast
only.
pub fn expect_for_of(self) -> ForOfStmt
ecma_ast
only.pub fn for_of(self) -> Option<ForOfStmt>
Available on crate feature ecma_ast
only.
pub fn for_of(self) -> Option<ForOfStmt>
ecma_ast
only.Returns Some
if self
is of variant ForOf
, and None
otherwise.
pub const fn is_decl(&self) -> bool
Available on crate feature ecma_ast
only.
pub const fn is_decl(&self) -> bool
ecma_ast
only.Returns true
if self
is of variant Decl
.
pub fn as_decl(&self) -> Option<&Decl>
Available on crate feature ecma_ast
only.
pub fn as_decl(&self) -> Option<&Decl>
ecma_ast
only.Returns Some
if self
is a reference of variant Decl
, and None
otherwise.
pub fn as_mut_decl(&mut self) -> Option<&mut Decl>
Available on crate feature ecma_ast
only.
pub fn as_mut_decl(&mut self) -> Option<&mut Decl>
ecma_ast
only.Returns Some
if self
is a mutable reference of variant Decl
, and None
otherwise.
pub fn expect_decl(self) -> Decl
Available on crate feature ecma_ast
only.
pub fn expect_decl(self) -> Decl
ecma_ast
only.pub fn decl(self) -> Option<Decl>
Available on crate feature ecma_ast
only.
pub fn decl(self) -> Option<Decl>
ecma_ast
only.Returns Some
if self
is of variant Decl
, and None
otherwise.
pub const fn is_expr(&self) -> bool
Available on crate feature ecma_ast
only.
pub const fn is_expr(&self) -> bool
ecma_ast
only.Returns true
if self
is of variant Expr
.
pub fn as_expr(&self) -> Option<&ExprStmt>
Available on crate feature ecma_ast
only.
pub fn as_expr(&self) -> Option<&ExprStmt>
ecma_ast
only.Returns Some
if self
is a reference of variant Expr
, and None
otherwise.
pub fn as_mut_expr(&mut self) -> Option<&mut ExprStmt>
Available on crate feature ecma_ast
only.
pub fn as_mut_expr(&mut self) -> Option<&mut ExprStmt>
ecma_ast
only.Returns Some
if self
is a mutable reference of variant Expr
, and None
otherwise.
pub fn expect_expr(self) -> ExprStmt
Available on crate feature ecma_ast
only.
pub fn expect_expr(self) -> ExprStmt
ecma_ast
only.§impl Stmt
impl Stmt
pub fn is_use_strict(&self) -> bool
ecma_ast
only.pub fn can_precede_directive(&self) -> bool
Available on crate feature ecma_ast
only.
pub fn can_precede_directive(&self) -> bool
ecma_ast
only.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 is_directive(&self) -> bool
fn is_directive(&self) -> bool
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, e: &mut Emitter<'_, W, S>) -> Result<(), Error>where
S: SourceMapper + SourceMapperExt,
W: WriteJs,
§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 terminates(&self) -> bool
fn terminates(&self) -> bool
fn extract_var_ids_as_var(&self) -> Option<VarDecl>
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 terminates(&self) -> bool
fn terminates(&self) -> bool
fn extract_var_ids_as_var(&self) -> Option<VarDecl>
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§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
§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<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.