Enum scilla_parser::ast::nodes::NodeComponentId
source · pub enum NodeComponentId {
WithTypeLikeName(WithMetaData<NodeTypeNameIdentifier>),
WithRegularId(WithMetaData<String>),
}Expand description
NodeComponentId represents a component id node in the AST It can either be a WithTypeLikeName or a WithRegularId
Variants§
WithTypeLikeName(WithMetaData<NodeTypeNameIdentifier>)
Represents a component id with a type like name
Example: component WithTypeLikeName;
WithRegularId(WithMetaData<String>)
Represents a component id with a regular id
Example: component WithRegularId;
Trait Implementations§
source§impl AstVisitor for NodeComponentId
impl AstVisitor for NodeComponentId
fn visit( &self, emitter: &mut dyn AstConverting ) -> Result<TraversalResult, String>
source§impl Clone for NodeComponentId
impl Clone for NodeComponentId
source§fn clone(&self) -> NodeComponentId
fn clone(&self) -> NodeComponentId
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 NodeComponentId
impl Debug for NodeComponentId
source§impl PartialEq for NodeComponentId
impl PartialEq for NodeComponentId
source§fn eq(&self, other: &NodeComponentId) -> bool
fn eq(&self, other: &NodeComponentId) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for NodeComponentId
impl PartialOrd for NodeComponentId
source§fn partial_cmp(&self, other: &NodeComponentId) -> Option<Ordering>
fn partial_cmp(&self, other: &NodeComponentId) -> 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 NodeComponentId
impl StructuralEq for NodeComponentId
impl StructuralPartialEq for NodeComponentId
Auto Trait Implementations§
impl RefUnwindSafe for NodeComponentId
impl Send for NodeComponentId
impl Sync for NodeComponentId
impl Unpin for NodeComponentId
impl UnwindSafe for NodeComponentId
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