pub struct NodeContractField {
pub typed_identifier: WithMetaData<NodeTypedIdentifier>,
pub right_hand_side: WithMetaData<NodeFullExpression>,
}
Expand description
NodeContractField represents a contract field node in the AST It contains a typed identifier and a right hand side
Fields§
§typed_identifier: WithMetaData<NodeTypedIdentifier>
The typed identifier of the contract field
right_hand_side: WithMetaData<NodeFullExpression>
The right hand side of the contract field
Trait Implementations§
Source§impl AstVisitor for NodeContractField
impl AstVisitor for NodeContractField
fn visit( &self, emitter: &mut dyn AstConverting, ) -> Result<TraversalResult, String>
Source§impl Clone for NodeContractField
impl Clone for NodeContractField
Source§fn clone(&self) -> NodeContractField
fn clone(&self) -> NodeContractField
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 NodeContractField
impl Debug for NodeContractField
Source§impl PartialEq for NodeContractField
impl PartialEq for NodeContractField
Source§impl PartialOrd for NodeContractField
impl PartialOrd for NodeContractField
impl Eq for NodeContractField
impl StructuralPartialEq for NodeContractField
Auto Trait Implementations§
impl Freeze for NodeContractField
impl RefUnwindSafe for NodeContractField
impl Send for NodeContractField
impl Sync for NodeContractField
impl Unpin for NodeContractField
impl UnwindSafe for NodeContractField
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