pub struct MatcherExpression {
pub left: Operand,
pub op: Operator,
pub right: Operand,
pub span: Span,
}Expand description
Fields§
§left: OperandThe left-hand side operand.
op: OperatorThe comparison operator.
right: OperandThe right-hand side operand.
span: SpanThe source span of the expression.
Implementations§
Source§impl MatcherExpression
impl MatcherExpression
Sourcepub fn is_equality(&self) -> bool
pub fn is_equality(&self) -> bool
Returns true if this is an equality (==) expression.
Sourcepub fn is_inequality(&self) -> bool
pub fn is_inequality(&self) -> bool
Returns true if this is an inequality (!=) expression.
Trait Implementations§
Source§impl Clone for MatcherExpression
impl Clone for MatcherExpression
Source§fn clone(&self) -> MatcherExpression
fn clone(&self) -> MatcherExpression
Returns a duplicate 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 MatcherExpression
impl Debug for MatcherExpression
Source§impl Display for MatcherExpression
impl Display for MatcherExpression
Source§impl PartialEq for MatcherExpression
impl PartialEq for MatcherExpression
impl StructuralPartialEq for MatcherExpression
Auto Trait Implementations§
impl Freeze for MatcherExpression
impl RefUnwindSafe for MatcherExpression
impl Send for MatcherExpression
impl Sync for MatcherExpression
impl Unpin for MatcherExpression
impl UnsafeUnpin for MatcherExpression
impl UnwindSafe for MatcherExpression
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