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

impl Decodable for ForeignItemKind
[src]

impl Debug for ForeignItemKind
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations