AssignOpKind in rustc_ast::ast - Rust (original) (raw)

pub enum AssignOpKind {
    AddAssign,
    SubAssign,
    MulAssign,
    DivAssign,
    RemAssign,
    BitXorAssign,
    BitAndAssign,
    BitOrAssign,
    ShlAssign,
    ShrAssign,
}

§

The += operator (addition)

§

The -= operator (subtraction)

§

The *= operator (multiplication)

§

The /= operator (division)

§

The %= operator (modulus)

§

The ^= operator (bitwise xor)

§

The &= operator (bitwise and)

§

The |= operator (bitwise or)

§

The <<= operator (shift left)

§

The >>= operator (shift right)

§

§

§

§

§

§

§

§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 1 byte

Size for each variant: