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