GenericArg in rustc_ast::ast - Rust (original) (raw)

pub enum GenericArg {
    Lifetime(Lifetime),
    Type(P<Ty>),
    Const(AnonConst),
}

Expand description

Concrete argument in the sequence of generic args.

§

'a in Foo<'a>.

§

Bar in Foo<Bar>.

§

1 in Foo<1>.

§

§

§

§

§

§

§

§

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: