Enum syntax::visit::FnKind[][src]

pub enum FnKind<'a> {
    ItemFn(IdentFnHeader, &'a Visibility, &'a Block),
    Method(Ident, &'a MethodSigOption<&'a Visibility>, &'a Block),
    Closure(&'a Expr),
}

Variants

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

fn foo(&self)

|x, y| body

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]

Auto Trait Implementations

impl<'a> !Send for FnKind<'a>

impl<'a> !Sync for FnKind<'a>