pub enum GenericArgument {
Type(Type),
Lifetime(Lifetime),
Const(ConstExpression),
}Expand description
A concrete argument supplied for a generic parameter.
Variants§
Type(Type)
A type argument.
Lifetime(Lifetime)
A lifetime argument.
Const(ConstExpression)
A const expression argument.
Trait Implementations§
Source§impl Clone for GenericArgument
impl Clone for GenericArgument
Source§fn clone(&self) -> GenericArgument
fn clone(&self) -> GenericArgument
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GenericArgument
impl Debug for GenericArgument
Source§impl PartialEq for GenericArgument
impl PartialEq for GenericArgument
Source§fn eq(&self, other: &GenericArgument) -> bool
fn eq(&self, other: &GenericArgument) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for GenericArgument
impl StructuralPartialEq for GenericArgument
Auto Trait Implementations§
impl Freeze for GenericArgument
impl RefUnwindSafe for GenericArgument
impl Send for GenericArgument
impl Sync for GenericArgument
impl Unpin for GenericArgument
impl UnsafeUnpin for GenericArgument
impl UnwindSafe for GenericArgument
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