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§impl PartialOrd for NodeComponentId
impl PartialOrd for NodeComponentId
impl Eq for NodeComponentId
impl StructuralPartialEq for NodeComponentId
Auto Trait Implementations§
impl Freeze for NodeComponentId
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