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

Enum declaration

Fields of Enum

List of items

Class declaration

Fields of Class

Size of type in bytes; can be None if the type doesn't have known size, e.g. it's a template class

List of class types this class is derived from

List of class fields

List of using directives, like "using BaseClass::method1;"

Trait Implementations

impl Clone for CppTypeKind
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for CppTypeKind
[src]

impl PartialEq for CppTypeKind
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for CppTypeKind
[src]

Formats the value using the given formatter.