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