Struct cpp_to_rust_generator::cpp_type::CppTypeClassBase
[−]
[src]
pub struct CppTypeClassBase { pub name: String, pub template_arguments: Option<Vec<CppType>>, }
Information about base C++ class type
Fields
name: String
Name, including namespaces and nested classes
template_arguments: Option<Vec<CppType>>
For template classes, C++ types used as template arguments in this type, like [QString, int] in QHash<QString, int>
Methods
impl CppTypeClassBase
[src]
pub fn to_cpp_code(&self) -> Result<String>
[src]
Returns C++ code representing this type.
[src]
Returns string representation of this type for the purpose of function name generation.
pub fn instantiate_class(
&self,
nested_level1: usize,
template_arguments1: &[CppType]
) -> Result<CppTypeClassBase>
[src]
&self,
nested_level1: usize,
template_arguments1: &[CppType]
) -> Result<CppTypeClassBase>
Attempts to replace template types at nested_level1
within this type with template_arguments1
.
pub fn to_cpp_pseudo_code(&self) -> String
[src]
Returns string representation of this type for debugging output.
Trait Implementations
impl Debug for CppTypeClassBase
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for CppTypeClassBase
[src]
fn eq(&self, __arg_0: &CppTypeClassBase) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CppTypeClassBase) -> bool
[src]
This method tests for !=
.
impl Eq for CppTypeClassBase
[src]
impl Clone for CppTypeClassBase
[src]
fn clone(&self) -> CppTypeClassBase
[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