pub enum ControlFlow {
BreakExpr(BreakExpr),
ContinueExpr(ContinueExpr),
ReturnExpr(ReturnExpr),
}Expand description
The typed ControlFlow syntax category.
Variants§
BreakExpr(BreakExpr)
The BreakExpr syntax alternative.
ContinueExpr(ContinueExpr)
The ContinueExpr syntax alternative.
ReturnExpr(ReturnExpr)
The ReturnExpr syntax alternative.
Trait Implementations§
Source§impl Debug for ControlFlow
impl Debug for ControlFlow
Source§impl From<BreakExpr> for ControlFlow
impl From<BreakExpr> for ControlFlow
Source§impl From<ContinueExpr> for ControlFlow
impl From<ContinueExpr> for ControlFlow
Source§fn from(value: ContinueExpr) -> Self
fn from(value: ContinueExpr) -> Self
Converts to this type from the input type.
Source§impl From<ControlFlow> for Component
impl From<ControlFlow> for Component
Source§fn from(value: ControlFlow) -> Self
fn from(value: ControlFlow) -> Self
Converts to this type from the input type.
Source§impl From<ControlFlow> for Expr
impl From<ControlFlow> for Expr
Source§fn from(value: ControlFlow) -> Self
fn from(value: ControlFlow) -> Self
Converts to this type from the input type.
Source§impl From<ReturnExpr> for ControlFlow
impl From<ReturnExpr> for ControlFlow
Source§fn from(value: ReturnExpr) -> Self
fn from(value: ReturnExpr) -> Self
Converts to this type from the input type.
Source§impl Lex for ControlFlow
impl Lex for ControlFlow
Source§fn to_tokens(&self, output: &mut TokenStream)
fn to_tokens(&self, output: &mut TokenStream)
Appends this value’s token trees to
output.Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Emits this value into a fresh token stream.
Source§impl<N> Migrate<N> for ControlFlowwhere
N: ExternalCstNode,
impl<N> Migrate<N> for ControlFlowwhere
N: ExternalCstNode,
Source§impl PrettyTree for ControlFlow
impl PrettyTree for ControlFlow
Source§fn pretty_tree(&self) -> PrettyNode
fn pretty_tree(&self) -> PrettyNode
Builds the presentation node for this syntax value.
Auto Trait Implementations§
impl Freeze for ControlFlow
impl RefUnwindSafe for ControlFlow
impl Send for ControlFlow
impl Sync for ControlFlow
impl Unpin for ControlFlow
impl UnsafeUnpin for ControlFlow
impl UnwindSafe for ControlFlow
Blanket Implementations§
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
Mutably borrows from an owned value. Read more