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

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

Variants

ItemFn(Ident, &'a GenericsUnsafetyConstnessAbiVisibility)

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

Method(Ident, &'a MethodSigOption<Visibility>)

fn foo(&self)

Closure

|x, y| {}

Trait Implementations

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

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

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

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

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

This method tests for !=.

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

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

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

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