Enum syntex_syntax::visit::FnKind
[−]
[src]
pub enum FnKind<'a> {
ItemFn(Ident, &'a Generics, Unsafety, Constness, Abi, Visibility),
Method(Ident, &'a MethodSig, Option<Visibility>),
Closure,
}Variants
ItemFn(Ident, &'a Generics, Unsafety, Constness, Abi, Visibility)fn foo() or extern "Abi" fn foo()
Method(Ident, &'a MethodSig, Option<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