Struct scilla_parser::ast::nodes::NodeStatementBlock
source · pub struct NodeStatementBlock {
pub statements: Vec<NodeStatement>,
}Expand description
NodeStatementBlock represents a statement block node in the AST It contains a vector of statements
Fields§
§statements: Vec<NodeStatement>The statements of the statement block
Trait Implementations§
source§impl AstVisitor for NodeStatementBlock
impl AstVisitor for NodeStatementBlock
fn visit( &self, emitter: &mut dyn AstConverting ) -> Result<TraversalResult, String>
source§impl Clone for NodeStatementBlock
impl Clone for NodeStatementBlock
source§fn clone(&self) -> NodeStatementBlock
fn clone(&self) -> NodeStatementBlock
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 NodeStatementBlock
impl Debug for NodeStatementBlock
source§impl PartialEq for NodeStatementBlock
impl PartialEq for NodeStatementBlock
source§fn eq(&self, other: &NodeStatementBlock) -> bool
fn eq(&self, other: &NodeStatementBlock) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for NodeStatementBlock
impl PartialOrd for NodeStatementBlock
source§fn partial_cmp(&self, other: &NodeStatementBlock) -> Option<Ordering>
fn partial_cmp(&self, other: &NodeStatementBlock) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for NodeStatementBlock
impl StructuralEq for NodeStatementBlock
impl StructuralPartialEq for NodeStatementBlock
Auto Trait Implementations§
impl RefUnwindSafe for NodeStatementBlock
impl Send for NodeStatementBlock
impl Sync for NodeStatementBlock
impl Unpin for NodeStatementBlock
impl UnwindSafe for NodeStatementBlock
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