Enum rustc_typeck::hir::TraitItemKind [] [src]

pub enum TraitItemKind {
    Const(P<Ty>, Option<BodyId>),
    Method(MethodSigTraitMethod),
    Type(P<[TyParamBound]>, Option<P<Ty>>),
}
🔬 This is a nightly-only experimental API. (rustc_private)

Represents a trait method or associated constant or type

Variants

🔬 This is a nightly-only experimental API. (rustc_private)

An associated constant with an optional value (otherwise impls must contain a value)

🔬 This is a nightly-only experimental API. (rustc_private)

A method with an optional body

🔬 This is a nightly-only experimental API. (rustc_private)

An associated type with (possibly empty) bounds and optional concrete type

Trait Implementations

impl Decodable for TraitItemKind
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

impl PartialEq<TraitItemKind> for TraitItemKind
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for TraitItemKind
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Clone for TraitItemKind
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for TraitItemKind
[src]

impl Debug for TraitItemKind
[src]

Formats the value using the given formatter.

impl Encodable for TraitItemKind
[src]

🔬 This is a nightly-only experimental API. (rustc_private)