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

Type of the class where this method belong. This is used to construct type of "this" pointer and return type of constructors.

Whether this method is a constructor, a destructor or an operator

True if this is a virtual method

True if this is a pure virtual method (requires is_virtual = true)

True if this is a const method, i.e. "this" pointer receives by this method has const type

True if this is a static method, i.e. it doesn't receive "this" pointer at all.

Method visibility

True if the method is a Qt signal

True if the method is a Qt slot

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]

[src]

Formats the value using the given formatter. Read more

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

impl Clone for CppMethodClassMembership
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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