[][src]Enum lang_c::ast::BinaryOperator

pub enum BinaryOperator {
    Index,
    Multiply,
    Divide,
    Modulo,
    Plus,
    Minus,
    ShiftLeft,
    ShiftRight,
    Less,
    Greater,
    LessOrEqual,
    GreaterOrEqual,
    Equals,
    NotEquals,
    BitwiseAnd,
    BitwiseXor,
    BitwiseOr,
    LogicalAnd,
    LogicalOr,
    Assign,
    AssignMultiply,
    AssignDivide,
    AssignModulo,
    AssignPlus,
    AssignMinus,
    AssignShiftLeft,
    AssignShiftRight,
    AssignBitwiseAnd,
    AssignBitwiseXor,
    AssignBitwiseOr,
}

All operators with two operands

(C11 6.5)

Variants

Index

lhs[rhs]

Multiply

lhs * rhs

Divide

lhs / rhs

Modulo

lhs % rhs

Plus

lhs + rhs

Minus

lhs - rhs

ShiftLeft

lhs << rhs

ShiftRight

lhs >> rhs

Less

lhs < rhs

Greater

lhs > rhs

LessOrEqual

lhs <= rhs

GreaterOrEqual

lhs >= rhs

Equals

lhs == rhs

NotEquals

lhs != rhs

BitwiseAnd

lhs & rhs

BitwiseXor

lhs ^ rhs

BitwiseOr

lhs | rhs

LogicalAnd

lhs && rhs

LogicalOr

lhs || rhs

Assign

lhs = rhs

AssignMultiply

lhs *= rhs

AssignDivide

lhs /= rhs

AssignModulo

lhs %= rhs

AssignPlus

lhs += rhs

AssignMinus

lhs -= rhs

AssignShiftLeft

lhs <<= rhs

AssignShiftRight

lhs >>= rhs

AssignBitwiseAnd

lhs &= rhs

AssignBitwiseXor

lhs ^= rhs

AssignBitwiseOr

lhs |= rhs

Trait Implementations

impl Clone for BinaryOperator[src]

impl PartialEq<BinaryOperator> for BinaryOperator[src]

impl Debug for BinaryOperator[src]

impl StructuralPartialEq for BinaryOperator[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]