pub enum GenericArg {
Type(Type),
Const(Box<Expr>),
Binding {
name: Ident,
ty: Type,
},
}Expand description
A single generic argument
Variants§
Type(Type)
A type argument: i32
Const(Box<Expr>)
A const argument: 10 (for array sizes, etc.)
Binding
An associated type binding: Item = i32
Implementations§
Trait Implementations§
Source§impl Clone for GenericArg
impl Clone for GenericArg
Source§fn clone(&self) -> GenericArg
fn clone(&self) -> GenericArg
Returns a duplicate 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 GenericArg
impl Debug for GenericArg
Source§impl PartialEq for GenericArg
impl PartialEq for GenericArg
impl StructuralPartialEq for GenericArg
Auto Trait Implementations§
impl Freeze for GenericArg
impl RefUnwindSafe for GenericArg
impl Send for GenericArg
impl Sync for GenericArg
impl Unpin for GenericArg
impl UnwindSafe for GenericArg
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