Struct cpp_to_rust_generator::cpp_method::CppOperatorInfo [] [src]

pub struct CppOperatorInfo {
    pub function_name_suffix: Option<&'static str>,
    pub arguments_count: usize,
    pub allows_variadic_arguments: bool,
}

Constraints applied to a C++ operator method of a certain kind

Fields

String that must appear after "operator" in the method name, e.g. ">" for "operator>". "operator" prefix must be present for any operator. This field is None for conversion operator, as its name includes corresponding C++ type instead of a fixed string.

Total number of arguments, including implicit "this" argument. Most operators can be class members or free functions, but total number of arguments is the same in both cases.

True if this kind of operator can have variadic arguments. Only the function call operator has this property.

Trait Implementations

impl Debug for CppOperatorInfo
[src]

[src]

Formats the value using the given formatter. Read more

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

impl Clone for CppOperatorInfo
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations