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

pub enum FnKind<'a> {
    ItemFn(Ident, &'a GenericsUnsafetySpanned<Constness>, Abi, &'a Visibility),
    Method(Ident, &'a MethodSigOption<&'a Visibility>),
    Closure,
}

Variants

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

fn foo(&self)

|x, y| {}

Trait Implementations

impl<'a> Copy for FnKind<'a>
[src]

impl<'a> Clone for FnKind<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> PartialEq for FnKind<'a>
[src]

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

This method tests for !=.

impl<'a> Eq for FnKind<'a>
[src]