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]

[src]

[src]

Trait Implementations

impl ToTokens for BinOp
[src]

[src]
[]

Write self to the given Tokens. Read more

impl Debug for BinOp
[src]

[src]
[]

Formats the value using the given formatter. Read more

impl Copy for BinOp
[src]

impl Clone for BinOp
[src]

[src]
[]

Returns a copy of the value. Read more

1.0.0
[src]
[]

Performs copy-assignment from source. Read more

impl Eq for BinOp
[src]

impl PartialEq for BinOp
[src]

[src]
[]

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

1.0.0
[src]
[]

This method tests for !=.

impl Hash for BinOp
[src]

[src]
[]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]
[]

Feeds a slice of this type into the given [Hasher]. Read more