Enum rustc::hir::ImplItemKind [] [src]

pub enum ImplItemKind {
    Const(P<Ty>, BodyId),
    Method(MethodSigBodyId),
    Type(P<Ty>),
}
🔬 This is a nightly-only experimental API. (rustc_private)

Represents different contents within impls

Variants

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

An associated constant of the given type, set to the constant result of the expression

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

A method implementation with the given signature and body

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

An associated type

Trait Implementations

impl Clone for ImplItemKind
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ImplItemKind
[src]

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

This method tests for !=.

impl Eq for ImplItemKind
[src]

impl Encodable for ImplItemKind
[src]

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

deprecated in favor of rustc-serialize on crates.io

impl Decodable for ImplItemKind
[src]

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

deprecated in favor of rustc-serialize on crates.io

impl Hash for ImplItemKind
[src]

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

Feeds a slice of this type into the state provided.

impl Debug for ImplItemKind
[src]

Formats the value using the given formatter.