Enum cpp_demangle::ast::TemplateArg
source · pub enum TemplateArg {
Type(TypeHandle),
Expression(Expression),
SimpleExpression(ExprPrimary),
ArgPack(Vec<TemplateArg>),
}
Expand description
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§
source§impl Clone for TemplateArg
impl Clone for TemplateArg
source§fn clone(&self) -> TemplateArg
fn clone(&self) -> TemplateArg
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TemplateArg
impl Debug for TemplateArg
source§impl PartialEq for TemplateArg
impl PartialEq for TemplateArg
source§fn eq(&self, other: &TemplateArg) -> bool
fn eq(&self, other: &TemplateArg) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TemplateArg
impl StructuralPartialEq for TemplateArg
Auto Trait Implementations§
impl Freeze for TemplateArg
impl RefUnwindSafe for TemplateArg
impl Send for TemplateArg
impl Sync for TemplateArg
impl Unpin for TemplateArg
impl UnwindSafe for TemplateArg
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)