pub struct Block {
pub stmts: Vec<Stmt>,
pub span: Range<usize>,
}Expand description
A blocked expression. A Block can contain multiple expressions in the form of statements.
The last statement in the block is the return value of the block.
Fields§
§stmts: Vec<Stmt>The inner statements.
span: Range<usize>The region of the source code that this Block was parsed from.
Implementations§
Trait Implementations§
Source§impl Latex for Block
impl Latex for Block
Source§fn as_display(&self) -> LatexFormatter<'_, Self>
fn as_display(&self) -> LatexFormatter<'_, Self>
Wraps the value in a
LatexFormatter, which implements Display.Source§impl<'source> Parse<'source> for Block
impl<'source> Parse<'source> for Block
impl Eq for Block
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