Struct valkyrie_ast::StatementBlock
source · pub struct StatementBlock {
pub terms: Vec<StatementKind>,
pub span: Range<u32>,
}Expand description
{ a; b; c }
- Auxiliary parsing function, not instantiable.
Fields§
§terms: Vec<StatementKind>The statements of this block
span: Range<u32>The range of the node
Implementations§
source§impl StatementBlock
impl StatementBlock
sourcepub fn last_semicolon(&self) -> bool
pub fn last_semicolon(&self) -> bool
Check if last statement has a semicolon
sourcepub fn fill_semicolon(&mut self)
pub fn fill_semicolon(&mut self)
Fill statements with semicolon
Trait Implementations§
source§impl Clone for StatementBlock
impl Clone for StatementBlock
source§fn clone(&self) -> StatementBlock
fn clone(&self) -> StatementBlock
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for StatementBlock
impl Debug for StatementBlock
source§impl Default for StatementBlock
impl Default for StatementBlock
source§fn default() -> StatementBlock
fn default() -> StatementBlock
Returns the “default value” for a type. Read more
source§impl Hash for StatementBlock
impl Hash for StatementBlock
source§impl PartialEq for StatementBlock
impl PartialEq for StatementBlock
source§fn eq(&self, other: &StatementBlock) -> bool
fn eq(&self, other: &StatementBlock) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for StatementBlock
impl StructuralPartialEq for StatementBlock
Auto Trait Implementations§
impl RefUnwindSafe for StatementBlock
impl Send for StatementBlock
impl Sync for StatementBlock
impl Unpin for StatementBlock
impl UnwindSafe for StatementBlock
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