Enum cpp_to_rust_generator::cpp_method::CppOperator [] [src]

pub enum CppOperator {
    Conversion(CppType),
    Assignment,
    Addition,
    Subtraction,
    UnaryPlus,
    UnaryMinus,
    Multiplication,
    Division,
    Modulo,
    PrefixIncrement,
    PostfixIncrement,
    PrefixDecrement,
    PostfixDecrement,
    EqualTo,
    NotEqualTo,
    GreaterThan,
    LessThan,
    GreaterThanOrEqualTo,
    LessThanOrEqualTo,
    LogicalNot,
    LogicalAnd,
    LogicalOr,
    BitwiseNot,
    BitwiseAnd,
    BitwiseOr,
    BitwiseXor,
    BitwiseLeftShift,
    BitwiseRightShift,
    AdditionAssignment,
    SubtractionAssignment,
    MultiplicationAssignment,
    DivisionAssignment,
    ModuloAssignment,
    BitwiseAndAssignment,
    BitwiseOrAssignment,
    BitwiseXorAssignment,
    BitwiseLeftShiftAssignment,
    BitwiseRightShiftAssignment,
    Subscript,
    Indirection,
    AddressOf,
    StructureDereference,
    PointerToMember,
    FunctionCall,
    Comma,
    New,
    NewArray,
    Delete,
    DeleteArray,
}

Available types of C++ operators

Variants

(type) a

a = b

a + b

a - b

+a

-a

a * b

a / b

a % b

++a

a++

--a

a--

a == b

a != b

a > b

a < b

a >= b

a <= b

!a

a && b

a || b

~a

a & b

a | b

a ^ b

a << b

a >> b

a += b

a -= b

a *= b

a /= b

a %= b

a &= b

a |= b

a ^= b

a <<= b

a >>= b

a[b]

*a

&a

a->b

a->*b

a(a1, a2)

a, b

new type

new type[n]

delete a

delete[] a

Methods

impl CppOperator
[src]

[src]

Reports information about this operator

[src]

Returns alphanumeric identifier for this operator used to name FFI functions.

[src]

Returns all existing operator kinds except for conversion operator which includes an arbitrary C++ type.

Trait Implementations

impl Debug for CppOperator
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for CppOperator
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for CppOperator
[src]

impl Clone for CppOperator
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

Auto Trait Implementations

impl Send for CppOperator

impl Sync for CppOperator