pub enum NodeAtomicExpression {
AtomicSid(WithMetaData<NodeVariableIdentifier>),
AtomicLit(WithMetaData<NodeValueLiteral>),
}
Expand description
NodeAtomicExpression represents an atomic expression node in the AST It can either be an AtomicSid or an AtomicLit
Variants§
AtomicSid(WithMetaData<NodeVariableIdentifier>)
Represents an atomic sid
Example: let x = sid;
AtomicLit(WithMetaData<NodeValueLiteral>)
Represents an atomic literal
Example: let x = "literal";
Trait Implementations§
Source§impl AstVisitor for NodeAtomicExpression
impl AstVisitor for NodeAtomicExpression
fn visit( &self, emitter: &mut dyn AstConverting, ) -> Result<TraversalResult, String>
Source§impl Clone for NodeAtomicExpression
impl Clone for NodeAtomicExpression
Source§fn clone(&self) -> NodeAtomicExpression
fn clone(&self) -> NodeAtomicExpression
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 NodeAtomicExpression
impl Debug for NodeAtomicExpression
Source§impl PartialEq for NodeAtomicExpression
impl PartialEq for NodeAtomicExpression
Source§impl PartialOrd for NodeAtomicExpression
impl PartialOrd for NodeAtomicExpression
impl Eq for NodeAtomicExpression
impl StructuralPartialEq for NodeAtomicExpression
Auto Trait Implementations§
impl Freeze for NodeAtomicExpression
impl RefUnwindSafe for NodeAtomicExpression
impl Send for NodeAtomicExpression
impl Sync for NodeAtomicExpression
impl Unpin for NodeAtomicExpression
impl UnwindSafe for NodeAtomicExpression
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