Enum syntax::ast::ForeignItemKind[][src]

pub enum ForeignItemKind {
    Fn(P<FnDecl>, Generics),
    Static(P<Ty>, bool),
    Ty,
    Macro(Mac),
}

An item within an extern block

Variants

A foreign function

A foreign static item (static ext: u8), with optional mutability (the boolean is true when mutable)

A foreign type

A macro invocation

Methods

impl ForeignItemKind
[src]

Trait Implementations

impl Clone for ForeignItemKind
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ForeignItemKind
[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 ForeignItemKind
[src]

impl Encodable for ForeignItemKind
[src]

impl Decodable for ForeignItemKind
[src]

impl Hash for ForeignItemKind
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for ForeignItemKind
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations