Enum rustc_hir::hir::GenericParamKind [−][src]
pub enum GenericParamKind<'hir> {
Lifetime {
kind: LifetimeParamKind,
},
Type {
default: Option<&'hir Ty<'hir>>,
synthetic: Option<SyntheticTyParamKind>,
},
Const {
ty: &'hir Ty<'hir>,
default: Option<AnonConst>,
},
}
Variants
A lifetime definition (e.g., 'a: 'b + 'c + 'd
).
Fields of Lifetime
kind: LifetimeParamKind
Fields of Type
default: Option<&'hir Ty<'hir>>
synthetic: Option<SyntheticTyParamKind>
Fields of Const
Trait Implementations
Auto Trait Implementations
impl<'hir> RefUnwindSafe for GenericParamKind<'hir>
impl<'hir> !Send for GenericParamKind<'hir>
impl<'hir> !Sync for GenericParamKind<'hir>
impl<'hir> Unpin for GenericParamKind<'hir>
impl<'hir> UnwindSafe for GenericParamKind<'hir>
Blanket Implementations
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: 32 bytes
Size for each variant:
Lifetime
: 1 byteType
: 15 bytesConst
: 31 bytes