Enum syntex_syntax::visit::FnKind [] [src]

pub enum FnKind<'a> {
    ItemFn(Ident, &'a Generics, Unsafety, Constness, Abi, Visibility),
    Method(Ident, &'a MethodSig, Option<Visibility>),
    Closure,
}

Variants

ItemFn

fn foo() or extern "Abi" fn foo()

Method

fn foo(&self)

Closure

|x, y| {}

Trait Implementations

Derived Implementations

impl<'a> Eq for FnKind<'a>

impl<'a> PartialEq for FnKind<'a>

fn eq(&self, __arg_0: &FnKind<'a>) -> bool

fn ne(&self, __arg_0: &FnKind<'a>) -> bool

impl<'a> Clone for FnKind<'a>

fn clone(&self) -> FnKind<'a>

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

impl<'a> Copy for FnKind<'a>