Struct cpp_to_rust::cpp_data::TemplateArgumentsDeclaration [] [src]

pub struct TemplateArgumentsDeclaration {
    pub nested_level: i32,
    pub names: Vec<String>,
}

Information about template arguments of a C++ class type

Fields

Indicates how many template types this type is nested into.

In the following example class A has level 0, and class B has level 1.

template<class T>
class A {
  template<class T2>
  class B {};
};

Names of template arguments. Names themselves are not particularly important, but their count is.

Methods

impl TemplateArgumentsDeclaration
[src]

Trait Implementations

impl Hash for TemplateArgumentsDeclaration
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for TemplateArgumentsDeclaration
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for TemplateArgumentsDeclaration
[src]

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

Formats the value using the given formatter.