Enum rustc_hir::hir::GenericParamKind
source · [−]pub enum GenericParamKind<'hir> {
Lifetime {
kind: LifetimeParamKind,
},
Type {
default: Option<&'hir Ty<'hir>>,
synthetic: bool,
},
Const {
ty: &'hir Ty<'hir>,
default: Option<AnonConst>,
},
}Variants
Lifetime
Fields
kind: LifetimeParamKindA lifetime definition (e.g., 'a: 'b + 'c + 'd).
Type
Const
Fields
ty: &'hir Ty<'hir>Trait Implementations
impl<'hir, __CTX> HashStable<__CTX> for GenericParamKind<'hir> where
__CTX: HashStableContext,
impl<'hir, __CTX> HashStable<__CTX> for GenericParamKind<'hir> where
__CTX: HashStableContext,
Auto Trait Implementations
impl<'hir> RefUnwindSafe for GenericParamKind
impl<'hir> !Send for GenericParamKind
impl<'hir> !Sync for GenericParamKind
impl<'hir> Unpin for GenericParamKind
impl<'hir> UnwindSafe for GenericParamKind
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