Enum debris_hir::hir_nodes::HirInfixOperator
source · pub enum HirInfixOperator {
Comparison(HirComparisonOperator),
And,
Or,
Plus,
Minus,
Times,
Divide,
Modulo,
}
Expand description
Any operator that can be used as an infix
That means that this operator has to be between to values
Variants§
Comparison(HirComparisonOperator)
Any comparison like <, >, <=, >=, ==, !=
And
Logical and
Or
Logical or
Plus
Mathematical addition
Minus
Mathematical subtraction
Times
Mathematical multiplication
Divide
Mathematical division
Modulo
Mathematical modulo
Implementations§
source§impl HirInfixOperator
impl HirInfixOperator
sourcepub fn get_special_ident(&self) -> SpecialIdent
pub fn get_special_ident(&self) -> SpecialIdent
Returns the associated [SpecialIdent
]
Trait Implementations§
source§impl Clone for HirInfixOperator
impl Clone for HirInfixOperator
source§fn clone(&self) -> HirInfixOperator
fn clone(&self) -> HirInfixOperator
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 HirInfixOperator
impl Debug for HirInfixOperator
source§impl PartialEq for HirInfixOperator
impl PartialEq for HirInfixOperator
source§fn eq(&self, other: &HirInfixOperator) -> bool
fn eq(&self, other: &HirInfixOperator) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for HirInfixOperator
impl StructuralEq for HirInfixOperator
impl StructuralPartialEq for HirInfixOperator
Auto Trait Implementations§
impl RefUnwindSafe for HirInfixOperator
impl Send for HirInfixOperator
impl Sync for HirInfixOperator
impl Unpin for HirInfixOperator
impl UnwindSafe for HirInfixOperator
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.