Enum cpp_demangle::ast::Type

source ·
pub enum Type {
Show 16 variants Function(FunctionType), ClassEnum(ClassEnumType), Array(ArrayType), Vector(VectorType), PointerToMember(PointerToMemberType), TemplateParam(TemplateParam), TemplateTemplate(TemplateTemplateParamHandleTemplateArgs), Decltype(Decltype), Qualified(CvQualifiersTypeHandle), PointerTo(TypeHandle), LvalueRef(TypeHandle), RvalueRef(TypeHandle), Complex(TypeHandle), Imaginary(TypeHandle), VendorExtension(SourceNameOption<TemplateArgs>, TypeHandle), PackExpansion(TypeHandle),
}
Expand description

The <type> production.

<type> ::= <builtin-type>
       ::= <function-type>
       ::= <class-enum-type>
       ::= <array-type>
       ::= <vector-type>
       ::= <pointer-to-member-type>
       ::= <template-param>
       ::= <template-template-param> <template-args>
       ::= <decltype>
       ::= <CV-qualifiers> <type>
       ::= P <type>                                 # pointer-to
       ::= R <type>                                 # reference-to
       ::= O <type>                                 # rvalue reference-to (C++0x)
       ::= C <type>                                 # complex pair (C 2000)
       ::= G <type>                                 # imaginary (C 2000)
       ::= U <source-name> [<template-args>] <type> # vendor extended type qualifier
       ::= Dp <type>                                # pack expansion (C++0x)
       ::= <substitution>

Variants§

§

Function(FunctionType)

A function type.

§

ClassEnum(ClassEnumType)

A class, union, or enum type.

§

Array(ArrayType)

An array type.

§

Vector(VectorType)

A vector type.

§

PointerToMember(PointerToMemberType)

A pointer-to-member type.

§

TemplateParam(TemplateParam)

A named template parameter type.

§

TemplateTemplate(TemplateTemplateParamHandleTemplateArgs)

A template template type.

§

Decltype(Decltype)

A decltype.

§

Qualified(CvQualifiersTypeHandle)

A const-, restrict-, and/or volatile-qualified type.

§

PointerTo(TypeHandle)

A pointer to a type.

§

LvalueRef(TypeHandle)

An lvalue reference to a type.

§

RvalueRef(TypeHandle)

An rvalue reference to a type.

§

Complex(TypeHandle)

A complex pair of the given type.

§

Imaginary(TypeHandle)

An imaginary of the given type.

§

VendorExtension(SourceNameOption<TemplateArgs>, TypeHandle)

A vendor extended type qualifier.

§

PackExpansion(TypeHandle)

A pack expansion.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.