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
nested_level: i32
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: Vec<String>
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]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for TemplateArgumentsDeclaration
[src]
fn clone(&self) -> TemplateArgumentsDeclaration
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 TemplateArgumentsDeclaration
[src]
impl PartialEq for TemplateArgumentsDeclaration
[src]
fn eq(&self, __arg_0: &TemplateArgumentsDeclaration) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TemplateArgumentsDeclaration) -> bool
This method tests for !=
.