pub enum Body {
Prose(Block),
Code(StmtBlock),
}Expand description
A flow/fn declaration’s body — either the prose-ground Block
(BLOCK) or the code-ground StmtBlock (STMT_BLOCK), whichever the
body-dialect selector on the opening brace chose (charter §4, RULED
2026-07-23: plain { } = per-keyword default, ~{ } = code-ground,
>{ } = prose-ground — see parser::decl::decl_body). One enum rather
than two separate body()/code_body() accessors, since a given
declaration’s body is always exactly one or the other, never both.
Variants§
Prose(Block)
Prose-ground: content lines, choices, diverts (fn’s non-default
spelling; flow’s default).
Code(StmtBlock)
Code-ground: statements directly, no per-line ~ (flow’s
non-default spelling — the “Compound guard”; fn’s default).
Implementations§
Trait Implementations§
impl Eq for Body
impl StructuralPartialEq for Body
Auto Trait Implementations§
impl !RefUnwindSafe for Body
impl !Send for Body
impl !Sync for Body
impl !UnwindSafe for Body
impl Freeze for Body
impl Unpin for Body
impl UnsafeUnpin for Body
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