Enum rustc_ast::ast::GenericParamKind [−][src]
pub enum GenericParamKind {
Lifetime,
Type {
default: Option<P<Ty>>,
},
Const {
ty: P<Ty>,
kw_span: Span,
default: Option<AnonConst>,
},
}
Variants
A lifetime definition (e.g., 'a: 'b + 'c + 'd
).
Fields of Const
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for GenericParamKind
impl !Send for GenericParamKind
impl !Sync for GenericParamKind
impl Unpin for GenericParamKind
impl !UnwindSafe for GenericParamKind
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: 40 bytes
Size for each variant:
Lifetime
: 0 bytesType
: 12 bytesConst
: 36 bytes