pub struct Block {
pub stmts: Vec<Stmt>,
pub span: Span,
}Expand description
A block of statements in {}.
Fields§
§stmts: Vec<Stmt>The statements.
span: SpanThe block, with the braces.
Trait Implementations§
impl StructuralPartialEq for Block
Auto Trait Implementations§
impl Forget for Block
impl Freeze for Block
impl Move for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnsafeUnpin for Block
impl UnwindSafe for Blockwhere
RawVecInner: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
BoxRaw<TypeRef>: UnwindSafe,
BoxRaw<Stmt>: UnwindSafe,
BoxRaw<StructDef>: UnwindSafe,
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