Enum syntex_syntax::ast::ForeignItem_ [] [src]

pub enum ForeignItem_ {
    ForeignItemFn(P<FnDecl>, Generics),
    ForeignItemStatic(P<Ty>, bool),
}

An item within an extern block

Variants

ForeignItemFn

A foreign function

ForeignItemStatic

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

Methods

impl ForeignItem_

fn descriptive_variant(&self) -> &str

Trait Implementations

Derived Implementations

impl Debug for ForeignItem_

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Hash for ForeignItem_

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Decodable for ForeignItem_

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<ForeignItem_, __D::Error>

impl Encodable for ForeignItem_

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Eq for ForeignItem_

impl PartialEq for ForeignItem_

fn eq(&self, __arg_0: &ForeignItem_) -> bool

fn ne(&self, __arg_0: &ForeignItem_) -> bool

impl Clone for ForeignItem_

fn clone(&self) -> ForeignItem_

fn clone_from(&mut self, source: &Self)