Enum cpp_to_rust::cpp_data::CppTypeKind
[−]
[src]
pub enum CppTypeKind {
Enum {
values: Vec<CppEnumValue>,
},
Class {
size: Option<i32>,
bases: Vec<CppBaseSpecifier>,
fields: Vec<CppClassField>,
template_arguments: Option<TemplateArgumentsDeclaration>,
using_directives: Vec<CppClassUsingDirective>,
},
}Information about a C++ type declaration
Variants
EnumEnum declaration
Fields of Enum
values: Vec<CppEnumValue> | List of items |
ClassClass declaration
Fields of Class
size: Option<i32> | Size of type in bytes; can be None if the type doesn't have known size, e.g. it's a template class |
bases: Vec<CppBaseSpecifier> | List of class types this class is derived from |
fields: Vec<CppClassField> | List of class fields |
template_arguments: Option<TemplateArgumentsDeclaration> | |
using_directives: Vec<CppClassUsingDirective> | List of using directives, like "using BaseClass::method1;" |
Trait Implementations
impl Clone for CppTypeKind[src]
fn clone(&self) -> CppTypeKind
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 CppTypeKind[src]
impl PartialEq for CppTypeKind[src]
fn eq(&self, __arg_0: &CppTypeKind) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &CppTypeKind) -> bool
This method tests for !=.