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
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