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
sourceimpl Clone for TemplateArg
impl Clone for TemplateArg
sourcefn clone(&self) -> TemplateArg
fn clone(&self) -> TemplateArg
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TemplateArg
impl Debug for TemplateArg
sourceimpl PartialEq<TemplateArg> for TemplateArg
impl PartialEq<TemplateArg> for TemplateArg
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &TemplateArg) -> bool
fn ne(&self, other: &TemplateArg) -> bool
This method tests for !=
.
impl Eq for TemplateArg
impl StructuralEq for TemplateArg
impl StructuralPartialEq for TemplateArg
Auto Trait Implementations
impl RefUnwindSafe for TemplateArg
impl Send for TemplateArg
impl Sync for TemplateArg
impl Unpin for TemplateArg
impl UnwindSafe for TemplateArg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more