[−][src]Struct rustc_hir::GenericParam

pub struct GenericParam<'hir> {
    pub hir_id: HirId,
    pub name: ParamName,
    pub attrs: &'hir [Attribute],
    pub bounds: GenericBounds<'hir>,
    pub span: Span,
    pub pure_wrt_drop: bool,
    pub kind: GenericParamKind<'hir>,
}

Fields

hir_id: HirIdname: ParamNameattrs: &'hir [Attribute]bounds: GenericBounds<'hir>span: Spanpure_wrt_drop: boolkind: GenericParamKind<'hir>

Implementations

impl<'hir> GenericParam<'hir>[src]

pub fn bounds_span(&self) -> Option<Span>[src]

Trait Implementations

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

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

Auto Trait Implementations

impl<'hir> !RefUnwindSafe for GenericParam<'hir>

impl<'hir> !Send for GenericParam<'hir>

impl<'hir> !Sync for GenericParam<'hir>

impl<'hir> Unpin for GenericParam<'hir>

impl<'hir> !UnwindSafe for GenericParam<'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.