pub struct BlockExpr {
pub statements: Vec<Statement>,
pub return_expr: Option<Box<Expression>>,
pub expr_type: TypeId,
pub location: Location,
}
Expand description
A block expression containing statements and an optional return value
Fields§
§statements: Vec<Statement>
Statements in the block
return_expr: Option<Box<Expression>>
Optional final expression that becomes the return value (without semicolon)
expr_type: TypeId
Type of the block expression
location: Location
Source code location information
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BlockExpr
impl RefUnwindSafe for BlockExpr
impl Send for BlockExpr
impl Sync for BlockExpr
impl Unpin for BlockExpr
impl UnwindSafe for BlockExpr
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