Enum scilla_parser::ast::nodes::NodeByteStr
source · 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§fn eq(&self, other: &NodeByteStr) -> bool
fn eq(&self, other: &NodeByteStr) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for NodeByteStr
impl PartialOrd for NodeByteStr
source§fn partial_cmp(&self, other: &NodeByteStr) -> Option<Ordering>
fn partial_cmp(&self, other: &NodeByteStr) -> 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 NodeByteStr
impl StructuralEq for NodeByteStr
impl StructuralPartialEq for NodeByteStr
Auto Trait Implementations§
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