Enum sv_parser::ConstantExpression
source · pub enum ConstantExpression {
ConstantPrimary(Box<ConstantPrimary>),
Unary(Box<ConstantExpressionUnary>),
Binary(Box<ConstantExpressionBinary>),
Ternary(Box<ConstantExpressionTernary>),
}
Variants§
ConstantPrimary(Box<ConstantPrimary>)
Unary(Box<ConstantExpressionUnary>)
Binary(Box<ConstantExpressionBinary>)
Ternary(Box<ConstantExpressionTernary>)
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 for ConstantExpression
impl PartialEq 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 ==
.source§impl<'a> TryFrom<&'a ConstantExpression> for Locate
impl<'a> TryFrom<&'a ConstantExpression> for Locate
source§impl TryFrom<AnyNode> for ConstantExpression
impl TryFrom<AnyNode> for ConstantExpression
source§impl TryFrom<ConstantExpression> for Locate
impl TryFrom<ConstantExpression> for Locate
impl StructuralPartialEq for ConstantExpression
Auto Trait Implementations§
impl RefUnwindSafe for ConstantExpression
impl Send for ConstantExpression
impl Sync for ConstantExpression
impl Unpin for ConstantExpression
impl UnwindSafe for ConstantExpression
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