Enum cpp_to_rust_generator::cpp_method::CppMethodKind
[−]
[src]
pub enum CppMethodKind { Regular, Constructor, Destructor, }
Enumerator indicating special cases of C++ methods.
Variants
Regular
Just a class method
Constructor
Constructor
Destructor
Destructor
Methods
impl CppMethodKind
[src]
pub fn is_constructor(&self) -> bool
[src]
Returns true if this method is a constructor
pub fn is_destructor(&self) -> bool
[src]
Returns true if this method is a destructor
pub fn is_regular(&self) -> bool
[src]
Returns true if this method is a regular method or a free function
Trait Implementations
impl Debug for CppMethodKind
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for CppMethodKind
[src]
fn eq(&self, __arg_0: &CppMethodKind) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for CppMethodKind
[src]
impl Clone for CppMethodKind
[src]
fn clone(&self) -> CppMethodKind
[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