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
function_name_suffix: Option<&'static str>
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.
arguments_count: usize
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.
allows_variadic_arguments: bool
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]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for CppOperatorInfo
[src]
fn eq(&self, __arg_0: &CppOperatorInfo) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CppOperatorInfo) -> bool
[src]
This method tests for !=
.
impl Eq for CppOperatorInfo
[src]
impl Clone for CppOperatorInfo
[src]
fn clone(&self) -> CppOperatorInfo
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more