pub struct Block {
pub items: Vec<BlockItem>,
pub local_labels: Vec<Ident>,
pub range: SourceRange,
}Expand description
A compound statement.
Fields§
§items: Vec<BlockItem>Declarations and statements, in source order (C99 allows mixing).
local_labels: Vec<Ident>The labels __label__ a, b; declared local to this block.
C gives every label function scope, and so does this crate, so the declaration is accepted and the labels behave as they would without it.
range: SourceRangeWhere the block was written, including its braces.
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 UnsafeUnpin 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