Enum syntax::ast::BinOpKind [] [src]

pub enum BinOpKind {
    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 BinOpKind
[src]

[src]

[src]

[src]

[src]

[src]

Returns true if the binary operator takes its arguments by value

Trait Implementations

impl Clone for BinOpKind
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for BinOpKind
[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 Eq for BinOpKind
[src]

impl Encodable for BinOpKind
[src]

[src]

impl Decodable for BinOpKind
[src]

[src]

impl Hash for BinOpKind
[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

impl Debug for BinOpKind
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for BinOpKind
[src]

Auto Trait Implementations

impl Send for BinOpKind

impl Sync for BinOpKind