pub struct Block {
pub stmts: Vec<Stmt>,
}Expand description
Represents a block of statements enclosed in braces in the AST.
A Block contains a sequence of statements that are executed together.
Fields§
§stmts: Vec<Stmt>The list of statements contained within the block.
Trait Implementations§
impl StructuralPartialEq for Block
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
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