Enum sv_parser::ConstantExpression
source · pub enum ConstantExpression {
ConstantPrimary(Box<ConstantPrimary, Global>),
Unary(Box<ConstantExpressionUnary, Global>),
Binary(Box<ConstantExpressionBinary, Global>),
Ternary(Box<ConstantExpressionTernary, Global>),
}
Variants§
ConstantPrimary(Box<ConstantPrimary, Global>)
Unary(Box<ConstantExpressionUnary, Global>)
Binary(Box<ConstantExpressionBinary, Global>)
Ternary(Box<ConstantExpressionTernary, Global>)
Trait Implementations§
source§impl Clone for ConstantExpression
impl Clone for ConstantExpression
source§fn clone(&self) -> ConstantExpression
fn clone(&self) -> ConstantExpression
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 ConstantExpression
impl Debug for ConstantExpression
source§impl<'a> From<&'a ConstantExpression> for RefNode<'a>
impl<'a> From<&'a ConstantExpression> for RefNode<'a>
source§fn from(x: &'a ConstantExpression) -> RefNode<'a>
fn from(x: &'a ConstantExpression) -> RefNode<'a>
Converts to this type from the input type.
source§impl<'a> From<&'a ConstantExpression> for RefNodes<'a>
impl<'a> From<&'a ConstantExpression> for RefNodes<'a>
source§fn from(x: &'a ConstantExpression) -> RefNodes<'a>
fn from(x: &'a ConstantExpression) -> RefNodes<'a>
Converts to this type from the input type.
source§impl From<ConstantExpression> for AnyNode
impl From<ConstantExpression> for AnyNode
source§fn from(x: ConstantExpression) -> AnyNode
fn from(x: ConstantExpression) -> AnyNode
Converts to this type from the input type.
source§impl<'a> IntoIterator for &'a ConstantExpression
impl<'a> IntoIterator for &'a ConstantExpression
source§impl PartialEq<ConstantExpression> for ConstantExpression
impl PartialEq<ConstantExpression> for ConstantExpression
source§fn eq(&self, other: &ConstantExpression) -> bool
fn eq(&self, other: &ConstantExpression) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.