Enum clang::TemplateArgument
source · [−]pub enum TemplateArgument<'tu> {
Declaration,
Expression,
Null,
Nullptr,
Pack,
Template,
TemplateExpansion,
Integral(i64, u64),
Type(Type<'tu>),
}
Expand description
An argument to a template function specialization.
Variants
Declaration
A declaration for a pointer, reference, or member pointer non-type template parameter.
Expression
An expression that has not yet been resolved
Null
An empty template argument (e.g., one that has not yet been deduced).
Nullptr
A null pointer or null member pointer provided for a non-type template parameter.
Pack
A parameter pack.
Template
A name for a template provided for a template template parameter.
TemplateExpansion
A pack expansion of a name for a template provided for a template template parameter.
Integral(i64, u64)
An integer.
Type(Type<'tu>)
A type.
Trait Implementations
sourceimpl<'tu> Clone for TemplateArgument<'tu>
impl<'tu> Clone for TemplateArgument<'tu>
sourcefn clone(&self) -> TemplateArgument<'tu>
fn clone(&self) -> TemplateArgument<'tu>
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<'tu> Debug for TemplateArgument<'tu>
impl<'tu> Debug for TemplateArgument<'tu>
sourceimpl<'tu> PartialEq<TemplateArgument<'tu>> for TemplateArgument<'tu>
impl<'tu> PartialEq<TemplateArgument<'tu>> for TemplateArgument<'tu>
sourcefn eq(&self, other: &TemplateArgument<'tu>) -> bool
fn eq(&self, other: &TemplateArgument<'tu>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TemplateArgument<'tu>) -> bool
fn ne(&self, other: &TemplateArgument<'tu>) -> bool
This method tests for !=
.
impl<'tu> Copy for TemplateArgument<'tu>
impl<'tu> Eq for TemplateArgument<'tu>
impl<'tu> StructuralEq for TemplateArgument<'tu>
impl<'tu> StructuralPartialEq for TemplateArgument<'tu>
Auto Trait Implementations
impl<'tu> RefUnwindSafe for TemplateArgument<'tu>
impl<'tu> !Send for TemplateArgument<'tu>
impl<'tu> !Sync for TemplateArgument<'tu>
impl<'tu> Unpin for TemplateArgument<'tu>
impl<'tu> UnwindSafe for TemplateArgument<'tu>
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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more