Enum syntax::visit::FnKind [−][src]
pub enum FnKind<'a> { ItemFn(Ident, FnHeader, &'a Visibility, &'a Block), Method(Ident, &'a MethodSig, Option<&'a Visibility>, &'a Block), Closure(&'a Expr), }
Variants
ItemFn(Ident, FnHeader, &'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> Copy for FnKind<'a>
impl<'a> Clone for FnKind<'a>
[src]
impl<'a> Clone for FnKind<'a>
fn clone(&self) -> 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[src]
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]
impl<'a> PartialEq for FnKind<'a>
fn eq(&self, other: &FnKind<'a>) -> bool
[src]
fn eq(&self, other: &FnKind<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &FnKind<'a>) -> bool
[src]
fn ne(&self, other: &FnKind<'a>) -> bool
This method tests for !=
.
impl<'a> Eq for FnKind<'a>
[src]
impl<'a> Eq for FnKind<'a>