Enum syn::BinOp [] [src]

pub enum BinOp {
    Add,
    Sub,
    Mul,
    Div,
    Rem,
    And,
    Or,
    BitXor,
    BitAnd,
    BitOr,
    Shl,
    Shr,
    Eq,
    Lt,
    Le,
    Ne,
    Ge,
    Gt,
}

Variants

The + operator (addition)

The - operator (subtraction)

The * operator (multiplication)

The / operator (division)

The % operator (modulus)

The && operator (logical and)

The || operator (logical or)

The ^ operator (bitwise xor)

The & operator (bitwise and)

The | operator (bitwise or)

The << operator (shift left)

The >> operator (shift right)

The == operator (equality)

The < operator (less than)

The <= operator (less than or equal to)

The != operator (not equal to)

The >= operator (greater than or equal to)

The > operator (greater than)

Methods

impl BinOp
[src]

Trait Implementations

impl ToTokens for BinOp
[src]

Write self to the given Tokens. Read more

impl Debug for BinOp
[src]

Formats the value using the given formatter.

impl Copy for BinOp
[src]

impl Clone for BinOp
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for BinOp
[src]

impl PartialEq for BinOp
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for BinOp
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.