Struct rustc_hir::hir::GenericParam
source · [−]pub struct GenericParam<'hir> {
pub hir_id: HirId,
pub name: ParamName,
pub bounds: GenericBounds<'hir>,
pub span: Span,
pub pure_wrt_drop: bool,
pub kind: GenericParamKind<'hir>,
}Fields
hir_id: HirIdname: ParamNamebounds: GenericBounds<'hir>span: Spanpure_wrt_drop: boolkind: GenericParamKind<'hir>Implementations
sourceimpl<'hir> GenericParam<'hir>
impl<'hir> GenericParam<'hir>
pub fn bounds_span_for_suggestions(&self) -> Option<Span>
Trait Implementations
sourceimpl<'hir> Debug for GenericParam<'hir>
impl<'hir> Debug for GenericParam<'hir>
sourceimpl<'hir, __CTX> HashStable<__CTX> for GenericParam<'hir> where
__CTX: HashStableContext,
impl<'hir, __CTX> HashStable<__CTX> for GenericParam<'hir> where
__CTX: HashStableContext,
fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
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: 88 bytes