pub enum NodeByteStr {
Constant(WithMetaData<String>),
Type(WithMetaData<String>),
}
Expand description
NodeByteStr represents a byte string node in the AST
Variants§
Constant(WithMetaData<String>)
Represents a constant byte string
Example: let x = "constant";
Type(WithMetaData<String>)
Represents a byte string type
Example: let x: ByStr = "type";
Trait Implementations§
Source§impl AstVisitor for NodeByteStr
impl AstVisitor for NodeByteStr
fn visit( &self, emitter: &mut dyn AstConverting, ) -> Result<TraversalResult, String>
Source§impl Clone for NodeByteStr
impl Clone for NodeByteStr
Source§fn clone(&self) -> NodeByteStr
fn clone(&self) -> NodeByteStr
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 NodeByteStr
impl Debug for NodeByteStr
Source§impl Display for NodeByteStr
impl Display for NodeByteStr
Source§impl PartialEq for NodeByteStr
impl PartialEq for NodeByteStr
Source§impl PartialOrd for NodeByteStr
impl PartialOrd for NodeByteStr
impl Eq for NodeByteStr
impl StructuralPartialEq for NodeByteStr
Auto Trait Implementations§
impl Freeze for NodeByteStr
impl RefUnwindSafe for NodeByteStr
impl Send for NodeByteStr
impl Sync for NodeByteStr
impl Unpin for NodeByteStr
impl UnwindSafe for NodeByteStr
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