Enum rustc_ast::ast::GenericArg
source · Expand description
Concrete argument in the sequence of generic args.
Variants
Lifetime(Lifetime)
'a
in Foo<'a>
Type(P<Ty>)
Bar
in Foo<Bar>
Const(AnonConst)
1
in Foo<1>
Implementations
sourceimpl GenericArg
impl GenericArg
Trait Implementations
sourceimpl Clone for GenericArg
impl Clone for GenericArg
sourcefn clone(&self) -> GenericArg
fn clone(&self) -> GenericArg
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 moresourceimpl Debug for GenericArg
impl Debug for GenericArg
Auto Trait Implementations
impl !RefUnwindSafe for GenericArg
impl !Send for GenericArg
impl !Sync for GenericArg
impl Unpin for GenericArg
impl !UnwindSafe for GenericArg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes
Size for each variant:
Lifetime
: 16 bytesType
: 12 bytesConst
: 20 bytes