Struct cpp_to_rust_generator::cpp_method::CppMethodClassMembership
[−]
[src]
pub struct CppMethodClassMembership { pub class_type: CppTypeClassBase, pub kind: CppMethodKind, pub is_virtual: bool, pub is_pure_virtual: bool, pub is_const: bool, pub is_static: bool, pub visibility: CppVisibility, pub is_signal: bool, pub is_slot: bool, pub fake: Option<FakeCppMethod>, }
Information about a C++ class member method
Fields
class_type: CppTypeClassBase
Type of the class where this method belong. This is used to construct type of "this" pointer and return type of constructors.
kind: CppMethodKind
Whether this method is a constructor, a destructor or an operator
is_virtual: bool
True if this is a virtual method
is_pure_virtual: bool
True if this is a pure virtual method (requires is_virtual = true)
is_const: bool
True if this is a const method, i.e. "this" pointer receives by this method has const type
is_static: bool
True if this is a static method, i.e. it doesn't receive "this" pointer at all.
visibility: CppVisibility
Method visibility
is_signal: bool
True if the method is a Qt signal
is_slot: bool
True if the method is a Qt slot
fake: Option<FakeCppMethod>
If this method is a generated field accessor, this field contains information about it. Field accessors do not have real C++ methods corresponding to them.
Trait Implementations
impl Debug for CppMethodClassMembership
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for CppMethodClassMembership
[src]
fn eq(&self, __arg_0: &CppMethodClassMembership) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CppMethodClassMembership) -> bool
[src]
This method tests for !=
.
impl Eq for CppMethodClassMembership
[src]
impl Clone for CppMethodClassMembership
[src]
fn clone(&self) -> CppMethodClassMembership
[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