Enum cairo_lang_syntax::node::ast::BinaryOperator   
source · pub enum BinaryOperator {
Show 24 variants
    Dot(TerminalDot),
    Not(TerminalNot),
    Mul(TerminalMul),
    MulEq(TerminalMulEq),
    Div(TerminalDiv),
    DivEq(TerminalDivEq),
    Mod(TerminalMod),
    ModEq(TerminalModEq),
    Plus(TerminalPlus),
    PlusEq(TerminalPlusEq),
    Minus(TerminalMinus),
    MinusEq(TerminalMinusEq),
    EqEq(TerminalEqEq),
    Neq(TerminalNeq),
    Eq(TerminalEq),
    And(TerminalAnd),
    AndAnd(TerminalAndAnd),
    Or(TerminalOr),
    OrOr(TerminalOrOr),
    Xor(TerminalXor),
    LE(TerminalLE),
    GE(TerminalGE),
    LT(TerminalLT),
    GT(TerminalGT),
}Variants§
Dot(TerminalDot)
Not(TerminalNot)
Mul(TerminalMul)
MulEq(TerminalMulEq)
Div(TerminalDiv)
DivEq(TerminalDivEq)
Mod(TerminalMod)
ModEq(TerminalModEq)
Plus(TerminalPlus)
PlusEq(TerminalPlusEq)
Minus(TerminalMinus)
MinusEq(TerminalMinusEq)
EqEq(TerminalEqEq)
Neq(TerminalNeq)
Eq(TerminalEq)
And(TerminalAnd)
AndAnd(TerminalAndAnd)
Or(TerminalOr)
OrOr(TerminalOrOr)
Xor(TerminalXor)
LE(TerminalLE)
GE(TerminalGE)
LT(TerminalLT)
GT(TerminalGT)
Implementations§
source§impl BinaryOperator
 
impl BinaryOperator
pub fn is_variant(kind: SyntaxKind) -> bool
Trait Implementations§
source§impl Clone for BinaryOperator
 
impl Clone for BinaryOperator
source§fn clone(&self) -> BinaryOperator
 
fn clone(&self) -> BinaryOperator
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 BinaryOperator
 
impl Debug for BinaryOperator
source§impl Hash for BinaryOperator
 
impl Hash for BinaryOperator
source§impl PartialEq<BinaryOperator> for BinaryOperator
 
impl PartialEq<BinaryOperator> for BinaryOperator
source§fn eq(&self, other: &BinaryOperator) -> bool
 
fn eq(&self, other: &BinaryOperator) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl TypedSyntaxNode for BinaryOperator
 
impl TypedSyntaxNode for BinaryOperator
source§const OPTIONAL_KIND: Option<SyntaxKind> = None
 
const OPTIONAL_KIND: Option<SyntaxKind> = None
The relevant SyntaxKind. None for enums.
type StablePtr = BinaryOperatorPtr
type Green = BinaryOperatorGreen
fn missing(db: &dyn SyntaxGroup) -> Self::Green
fn from_syntax_node(db: &dyn SyntaxGroup, node: SyntaxNode) -> Self
fn as_syntax_node(&self) -> SyntaxNode
fn stable_ptr(&self) -> Self::StablePtr
impl Eq for BinaryOperator
impl StructuralEq for BinaryOperator
impl StructuralPartialEq for BinaryOperator
Auto Trait Implementations§
impl RefUnwindSafe for BinaryOperator
impl Send for BinaryOperator
impl Sync for BinaryOperator
impl Unpin for BinaryOperator
impl UnwindSafe for BinaryOperator
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
source§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,
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.§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.