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