Enum mun_syntax::ast::BinOp[][src]

pub enum BinOp {
    Add,
    Subtract,
    Multiply,
    Divide,
    Remainder,
    BooleanAnd,
    BooleanOr,
    LeftShift,
    RightShift,
    BitwiseOr,
    BitwiseAnd,
    BitwiseXor,
    Assign,
    AddAssign,
    SubtractAssign,
    MultiplyAssign,
    DivideAssign,
    RemainderAssign,
    LeftShiftAssign,
    RightShiftAssign,
    BitAndAssign,
    BitOrAssign,
    BitXorAssign,
    Equals,
    NotEqual,
    LessEqual,
    Less,
    GreatEqual,
    Greater,
}

Variants

Add

The + operator for addition

Subtract

The - operator for subtraction

Multiply

The * operator for multiplication

Divide

The / operator for division

Remainder

The % operator for remainder after division

BooleanAnd

The && operator for boolean AND

BooleanOr

The || operator for boolean OR

LeftShift

The << operator for left shift

RightShift

The >> operator for right shift

BitwiseOr

The | operator for bitwise OR

BitwiseAnd

The & operator for bitwise AND

BitwiseXor

The ^ operator for bitwise XOR

Assign

The = operator for assignment

AddAssign

The += operator for assignment after addition

SubtractAssign

The -= operator for assignment after subtraction

MultiplyAssign

The *= operator for assignment after multiplication

DivideAssign

The /= operator for assignment after division

RemainderAssign

The %= operator for assignment after remainders

LeftShiftAssign

The <<= operator for assignment after shifting left

RightShiftAssign

The >>= operator for assignment after shifting right

BitAndAssign

The &= operator for assignment after bitwise AND

BitOrAssign

The |= operator for assignment after bitwise OR

BitXorAssign

The ^= operator for assignment after bitwise XOR

Equals

The == operator for equality testing

NotEqual

The != operator for inequality testing

LessEqual

The <= operator for lesser-equal testing

Less

The < operator for comparison

GreatEqual

The >= operator for greater-equal testing

Greater

The > operator for comparison

Trait Implementations

impl Clone for BinOp[src]

impl Copy for BinOp[src]

impl Debug for BinOp[src]

impl Eq for BinOp[src]

impl Hash for BinOp[src]

impl PartialEq<BinOp> for BinOp[src]

impl StructuralEq for BinOp[src]

impl StructuralPartialEq for BinOp[src]

Auto Trait Implementations

impl RefUnwindSafe for BinOp

impl Send for BinOp

impl Sync for BinOp

impl Unpin for BinOp

impl UnwindSafe for BinOp

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.