Enum syntax::visit::FnKind
[−]
[src]
pub enum FnKind<'a> { ItemFn(Ident, Unsafety, Spanned<Constness>, Abi, &'a Visibility, &'a Block), Method(Ident, &'a MethodSig, Option<&'a Visibility>, &'a Block), Closure(&'a Expr), }
Variants
ItemFn(Ident, Unsafety, Spanned<Constness>, Abi, &'a Visibility, &'a Block)
fn foo() or extern "Abi" fn foo()
Method(Ident, &'a MethodSig, Option<&'a Visibility>, &'a Block)
fn foo(&self)
Closure(&'a Expr)
|x, y| body
Trait Implementations
impl<'a> Copy for FnKind<'a>
[src]
impl<'a> Clone for FnKind<'a>
[src]
fn clone(&self) -> FnKind<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> PartialEq for FnKind<'a>
[src]
fn eq(&self, __arg_0: &FnKind<'a>) -> bool
[src]
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
[src]
This method tests for !=
.