#[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),
}
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§
source§impl Stmt
impl Stmt
sourcepub 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.
sourcepub 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.
sourcepub fn expect_block(self) -> BlockStmtwhere
Self: Debug,
pub fn expect_block(self) -> BlockStmtwhere
Self: Debug,
sourcepub fn block(self) -> Option<BlockStmt>
pub fn block(self) -> Option<BlockStmt>
Returns Some
if self
is of variant Block
, and None
otherwise.
sourcepub 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.
sourcepub 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.
sourcepub fn expect_empty(self) -> EmptyStmtwhere
Self: Debug,
pub fn expect_empty(self) -> EmptyStmtwhere
Self: Debug,
sourcepub fn empty(self) -> Option<EmptyStmt>
pub fn empty(self) -> Option<EmptyStmt>
Returns Some
if self
is of variant Empty
, and None
otherwise.
sourcepub const fn is_debugger(&self) -> bool
pub const fn is_debugger(&self) -> bool
Returns true
if self
is of variant Debugger
.
sourcepub 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.
sourcepub 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.
sourcepub fn expect_debugger(self) -> DebuggerStmtwhere
Self: Debug,
pub fn expect_debugger(self) -> DebuggerStmtwhere
Self: Debug,
sourcepub fn debugger(self) -> Option<DebuggerStmt>
pub fn debugger(self) -> Option<DebuggerStmt>
Returns Some
if self
is of variant Debugger
, and None
otherwise.
sourcepub 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.
sourcepub 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.
sourcepub fn expect_with(self) -> WithStmtwhere
Self: Debug,
pub fn expect_with(self) -> WithStmtwhere
Self: Debug,
sourcepub fn with(self) -> Option<WithStmt>
pub fn with(self) -> Option<WithStmt>
Returns Some
if self
is of variant With
, and None
otherwise.
sourcepub const fn is_return_stmt(&self) -> bool
pub const fn is_return_stmt(&self) -> bool
Returns true
if self
is of variant Return
.
sourcepub 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.
sourcepub 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.
sourcepub fn expect_return_stmt(self) -> ReturnStmtwhere
Self: Debug,
pub fn expect_return_stmt(self) -> ReturnStmtwhere
Self: Debug,
sourcepub fn return_stmt(self) -> Option<ReturnStmt>
pub fn return_stmt(self) -> Option<ReturnStmt>
Returns Some
if self
is of variant Return
, and None
otherwise.
sourcepub const fn is_labeled(&self) -> bool
pub const fn is_labeled(&self) -> bool
Returns true
if self
is of variant Labeled
.
sourcepub 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.
sourcepub 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.
sourcepub fn expect_labeled(self) -> LabeledStmtwhere
Self: Debug,
pub fn expect_labeled(self) -> LabeledStmtwhere
Self: Debug,
sourcepub fn labeled(self) -> Option<LabeledStmt>
pub fn labeled(self) -> Option<LabeledStmt>
Returns Some
if self
is of variant Labeled
, and None
otherwise.
sourcepub const fn is_break_stmt(&self) -> bool
pub const fn is_break_stmt(&self) -> bool
Returns true
if self
is of variant Break
.
sourcepub 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.
sourcepub 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.
sourcepub fn expect_break_stmt(self) -> BreakStmtwhere
Self: Debug,
pub fn expect_break_stmt(self) -> BreakStmtwhere
Self: Debug,
sourcepub fn break_stmt(self) -> Option<BreakStmt>
pub fn break_stmt(self) -> Option<BreakStmt>
Returns Some
if self
is of variant Break
, and None
otherwise.
sourcepub const fn is_continue_stmt(&self) -> bool
pub const fn is_continue_stmt(&self) -> bool
Returns true
if self
is of variant Continue
.
sourcepub 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.
sourcepub 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.
sourcepub fn expect_continue_stmt(self) -> ContinueStmtwhere
Self: Debug,
pub fn expect_continue_stmt(self) -> ContinueStmtwhere
Self: Debug,
sourcepub fn continue_stmt(self) -> Option<ContinueStmt>
pub fn continue_stmt(self) -> Option<ContinueStmt>
Returns Some
if self
is of variant Continue
, and None
otherwise.
sourcepub const fn is_if_stmt(&self) -> bool
pub const fn is_if_stmt(&self) -> bool
Returns true
if self
is of variant If
.
sourcepub 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.
sourcepub 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.
sourcepub fn expect_if_stmt(self) -> IfStmtwhere
Self: Debug,
pub fn expect_if_stmt(self) -> IfStmtwhere
Self: Debug,
sourcepub fn if_stmt(self) -> Option<IfStmt>
pub fn if_stmt(self) -> Option<IfStmt>
Returns Some
if self
is of variant If
, and None
otherwise.
sourcepub 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.
sourcepub 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.
sourcepub fn expect_switch(self) -> SwitchStmtwhere
Self: Debug,
pub fn expect_switch(self) -> SwitchStmtwhere
Self: Debug,
sourcepub fn switch(self) -> Option<SwitchStmt>
pub fn switch(self) -> Option<SwitchStmt>
Returns Some
if self
is of variant Switch
, and None
otherwise.
sourcepub 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.
sourcepub 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.
sourcepub fn expect_throw(self) -> ThrowStmtwhere
Self: Debug,
pub fn expect_throw(self) -> ThrowStmtwhere
Self: Debug,
sourcepub fn throw(self) -> Option<ThrowStmt>
pub fn throw(self) -> Option<ThrowStmt>
Returns Some
if self
is of variant Throw
, and None
otherwise.
sourcepub const fn is_try_stmt(&self) -> bool
pub const fn is_try_stmt(&self) -> bool
Returns true
if self
is of variant Try
.
sourcepub 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.
sourcepub 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.
sourcepub fn expect_try_stmt(self) -> Box<TryStmt>where
Self: Debug,
pub fn expect_try_stmt(self) -> Box<TryStmt>where
Self: Debug,
sourcepub 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.
sourcepub const fn is_while_stmt(&self) -> bool
pub const fn is_while_stmt(&self) -> bool
Returns true
if self
is of variant While
.
sourcepub 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.
sourcepub 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.
sourcepub fn expect_while_stmt(self) -> WhileStmtwhere
Self: Debug,
pub fn expect_while_stmt(self) -> WhileStmtwhere
Self: Debug,
sourcepub fn while_stmt(self) -> Option<WhileStmt>
pub fn while_stmt(self) -> Option<WhileStmt>
Returns Some
if self
is of variant While
, and None
otherwise.
sourcepub const fn is_do_while(&self) -> bool
pub const fn is_do_while(&self) -> bool
Returns true
if self
is of variant DoWhile
.
sourcepub 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.
sourcepub 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.
sourcepub fn expect_do_while(self) -> DoWhileStmtwhere
Self: Debug,
pub fn expect_do_while(self) -> DoWhileStmtwhere
Self: Debug,
sourcepub fn do_while(self) -> Option<DoWhileStmt>
pub fn do_while(self) -> Option<DoWhileStmt>
Returns Some
if self
is of variant DoWhile
, and None
otherwise.
sourcepub const fn is_for_stmt(&self) -> bool
pub const fn is_for_stmt(&self) -> bool
Returns true
if self
is of variant For
.
sourcepub 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.
sourcepub 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.
sourcepub fn expect_for_stmt(self) -> ForStmtwhere
Self: Debug,
pub fn expect_for_stmt(self) -> ForStmtwhere
Self: Debug,
sourcepub fn for_stmt(self) -> Option<ForStmt>
pub fn for_stmt(self) -> Option<ForStmt>
Returns Some
if self
is of variant For
, and None
otherwise.
sourcepub 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.
sourcepub 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.
sourcepub fn expect_for_in(self) -> ForInStmtwhere
Self: Debug,
pub fn expect_for_in(self) -> ForInStmtwhere
Self: Debug,
sourcepub fn for_in(self) -> Option<ForInStmt>
pub fn for_in(self) -> Option<ForInStmt>
Returns Some
if self
is of variant ForIn
, and None
otherwise.
sourcepub 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.
sourcepub 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.
sourcepub fn expect_for_of(self) -> ForOfStmtwhere
Self: Debug,
pub fn expect_for_of(self) -> ForOfStmtwhere
Self: Debug,
sourcepub fn for_of(self) -> Option<ForOfStmt>
pub fn for_of(self) -> Option<ForOfStmt>
Returns Some
if self
is of variant ForOf
, and None
otherwise.
sourcepub 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.
sourcepub 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.
sourcepub fn expect_decl(self) -> Declwhere
Self: Debug,
pub fn expect_decl(self) -> Declwhere
Self: Debug,
sourcepub 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.
sourcepub 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.
sourcepub fn expect_expr(self) -> ExprStmtwhere
Self: Debug,
pub fn expect_expr(self) -> ExprStmtwhere
Self: Debug,
source§impl Stmt
impl Stmt
pub fn is_use_strict(&self) -> bool
sourcepub 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§
source§impl Archive for Stmt
impl Archive for Stmt
source§type Resolver = StmtResolver
type Resolver = StmtResolver
source§fn resolve(&self, resolver: Self::Resolver, out: Place<Self::Archived>)
fn resolve(&self, resolver: Self::Resolver, out: Place<Self::Archived>)
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
serialize
. Read moresource§impl<'de> Deserialize<'de> for Stmt
impl<'de> Deserialize<'de> for Stmt
source§fn 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>,
source§impl<__D: Fallible + ?Sized> Deserialize<Stmt, __D> for Archived<Stmt>where
__D::Error: Source,
impl<__D: Fallible + ?Sized> Deserialize<Stmt, __D> for Archived<Stmt>where
__D::Error: Source,
source§impl EqIgnoreSpan for Stmt
impl EqIgnoreSpan for Stmt
fn eq_ignore_span(&self, other: &Self) -> bool
source§impl From<ContinueStmt> for Stmt
impl From<ContinueStmt> for Stmt
source§fn from(v: ContinueStmt) -> Self
fn from(v: ContinueStmt) -> Self
source§impl From<DebuggerStmt> for Stmt
impl From<DebuggerStmt> for Stmt
source§fn from(v: DebuggerStmt) -> Self
fn from(v: DebuggerStmt) -> Self
source§impl From<DoWhileStmt> for Stmt
impl From<DoWhileStmt> for Stmt
source§fn from(v: DoWhileStmt) -> Self
fn from(v: DoWhileStmt) -> Self
source§impl From<LabeledStmt> for Stmt
impl From<LabeledStmt> for Stmt
source§fn from(v: LabeledStmt) -> Self
fn from(v: LabeledStmt) -> Self
source§impl From<ReturnStmt> for Stmt
impl From<ReturnStmt> for Stmt
source§fn from(v: ReturnStmt) -> Self
fn from(v: ReturnStmt) -> Self
source§impl From<Stmt> for ModuleItem
impl From<Stmt> for ModuleItem
source§impl From<SwitchStmt> for Stmt
impl From<SwitchStmt> for Stmt
source§fn from(v: SwitchStmt) -> Self
fn from(v: SwitchStmt) -> Self
source§impl From<TsEnumDecl> for Stmt
impl From<TsEnumDecl> for Stmt
source§fn from(src: TsEnumDecl) -> Stmt
fn from(src: TsEnumDecl) -> Stmt
source§impl From<TsInterfaceDecl> for Stmt
impl From<TsInterfaceDecl> for Stmt
source§fn from(src: TsInterfaceDecl) -> Stmt
fn from(src: TsInterfaceDecl) -> Stmt
source§impl From<TsModuleDecl> for Stmt
impl From<TsModuleDecl> for Stmt
source§fn from(src: TsModuleDecl) -> Stmt
fn from(src: TsModuleDecl) -> Stmt
source§impl From<TsTypeAliasDecl> for Stmt
impl From<TsTypeAliasDecl> for Stmt
source§fn from(src: TsTypeAliasDecl) -> Stmt
fn from(src: TsTypeAliasDecl) -> Stmt
source§impl<__S> Serialize<__S> for Stmtwhere
__S: Writer + Allocator + Fallible + ?Sized,
__S::Error: Source,
impl<__S> Serialize<__S> for Stmtwhere
__S: Writer + Allocator + Fallible + ?Sized,
__S::Error: Source,
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<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,
§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> 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>
source§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
§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.