Enum rustc_hir::TraitItemKind [−][src]
pub enum TraitItemKind<'hir> {
Const(&'hir Ty<'hir>, Option<BodyId>),
Fn(FnSig<'hir>, TraitFn<'hir>),
Type(GenericBounds<'hir>, Option<&'hir Ty<'hir>>),
}Expand description
Represents a trait method or associated constant or type
Variants
Expand description
An associated constant with an optional value (otherwise impls must contain a value).
Expand description
An associated function with an optional body.
Type(GenericBounds<'hir>, Option<&'hir Ty<'hir>>)Expand description
An associated type with (possibly empty) bounds and optional concrete type.
Trait Implementations
impl<'hir> Debug for TraitItemKind<'hir>[src]
impl<'hir> Debug for TraitItemKind<'hir>[src]impl<'hir, __CTX> HashStable<__CTX> for TraitItemKind<'hir> where
__CTX: HashStableContext, [src]
impl<'hir, __CTX> HashStable<__CTX> for TraitItemKind<'hir> where
__CTX: HashStableContext, [src]