Enum rustc_ast::ast::GenericArg [−][src]
Expand description
Concrete argument in the sequence of generic args.
Variants
Lifetime(Lifetime)
'a
in Foo<'a>
Tuple Fields of Lifetime
0: Lifetime
Bar
in Foo<Bar>
Const(AnonConst)
1
in Foo<1>
Tuple Fields of Const
0: AnonConst
Implementations
Trait Implementations
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
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