Enum cpp_demangle::ast::TemplateArg
[−]
[src]
pub enum TemplateArg { Type(TypeHandle), Expression(Expression), SimpleExpression(ExprPrimary), ArgPack(Vec<TemplateArg>), }
A
<template-arg> ::= <type> # type or template
::= X <expression> E # expression
::= <expr-primary> # simple expressions
::= J <template-arg>* E # argument pack
Variants
Type(TypeHandle)
A type or template.
Expression(Expression)
An expression.
SimpleExpression(ExprPrimary)
A simple expression.
ArgPack(Vec<TemplateArg>)
An argument pack.
Trait Implementations
impl Clone for TemplateArg
[src]
fn clone(&self) -> TemplateArg
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 Debug for TemplateArg
[src]
impl Hash for TemplateArg
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl PartialEq for TemplateArg
[src]
fn eq(&self, __arg_0: &TemplateArg) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TemplateArg) -> bool
This method tests for !=
.