Struct cpp_to_rust::cpp_method::CppFunctionArgument
[−]
[src]
pub struct CppFunctionArgument { pub name: String, pub argument_type: CppType, pub has_default_value: bool, }
Information about an argument of a C++ method
Fields
name: String
Identifier. If the argument doesn't have a name (which is allowed in C++), this field contains generated name "argX" (X is position of the argument).
argument_type: CppType
Argument type
has_default_value: bool
Flag indicating that the argument has default value and therefore can be omitted when calling the method
Trait Implementations
impl Hash for CppFunctionArgument
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for CppFunctionArgument
[src]
fn clone(&self) -> CppFunctionArgument
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for CppFunctionArgument
[src]
impl PartialEq for CppFunctionArgument
[src]
fn eq(&self, __arg_0: &CppFunctionArgument) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CppFunctionArgument) -> bool
This method tests for !=
.