pub enum BlockStmt {
TempDecl(TempDecl),
Assignment(Assignment),
Return(ReturnStmt),
If(IfStmt),
While(WhileStmt),
For(ForStmt),
Break(BreakStmt),
Continue(ContinueStmt),
ExprStmt(ExprStmt),
Await(AwaitStmt),
}Expand description
A single statement inside a ~ { … } block body.
Deliberately excludes every weave concept (content, choices, diverts, gathers, threads) — the seam rule from docs/t1b-surface-spec.md §2: blocks compute, weave flows.
Variants§
TempDecl(TempDecl)
Assignment(Assignment)
Return(ReturnStmt)
If(IfStmt)
While(WhileStmt)
For(ForStmt)
Break(BreakStmt)
Continue(ContinueStmt)
ExprStmt(ExprStmt)
Await(AwaitStmt)
await <cond> — a FlowFrame suspension point inside a ~ { … } block
(docs/flow-suspension-spec.md §3).
Trait Implementations§
Source§impl AstNode for BlockStmt
impl AstNode for BlockStmt
Source§fn can_cast(kind: SyntaxKind) -> bool
fn can_cast(kind: SyntaxKind) -> bool
Returns
true if a node with the given kind can be cast to Self.Source§fn cast(node: SyntaxNode) -> Option<Self>
fn cast(node: SyntaxNode) -> Option<Self>
Try to cast a generic
SyntaxNode into this typed wrapper.Source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
Access the underlying
SyntaxNode.impl Eq for BlockStmt
impl StructuralPartialEq for BlockStmt
Auto Trait Implementations§
impl !RefUnwindSafe for BlockStmt
impl !Send for BlockStmt
impl !Sync for BlockStmt
impl !UnwindSafe for BlockStmt
impl Freeze for BlockStmt
impl Unpin for BlockStmt
impl UnsafeUnpin for BlockStmt
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