[−][src]Enum rustc_hir::GenericParamKind

pub enum GenericParamKind<'hir> {
    Lifetime {
        kind: LifetimeParamKind,
    },
    Type {
        default: Option<&'hir Ty<'hir>>,
        synthetic: Option<SyntheticTyParamKind>,
    },
    Const {
        ty: &'hir Ty<'hir>,
    },
}

Variants

Lifetime

A lifetime definition (e.g., 'a: 'b + 'c + 'd).

Fields of Lifetime

kind: LifetimeParamKind
Type

Fields of Type

default: Option<&'hir Ty<'hir>>synthetic: Option<SyntheticTyParamKind>
Const

Fields of Const

ty: &'hir Ty<'hir>

Trait Implementations

impl<'hir> Debug for GenericParamKind<'hir>[src]

impl<'hir, __CTX> HashStable<__CTX> for GenericParamKind<'hir> where
    __CTX: HashStableContext, 
[src]

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

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.