Skip to content

Commit

Permalink
Impl Eq/PartialEq on FnKind, improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Aug 16, 2015
1 parent bef7d90 commit 27db6e1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/libsyntax/visit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,15 @@ use codemap::Span;
use ptr::P;
use owned_slice::OwnedSlice;

#[derive(Copy, Clone)]
#[derive(Copy, Clone, PartialEq, Eq)]
pub enum FnKind<'a> {
/// fn foo() or extern "Abi" fn foo()
FkItemFn(Ident, &'a Generics, Unsafety, Constness, Abi, Visibility),

/// fn foo(&self)
FkMethod(Ident, &'a MethodSig, Option<Visibility>),

/// |x, y| ...
/// proc(x, y) ...
/// Closures (|x, y| {})
FkFnBlock,
}

Expand Down

0 comments on commit 27db6e1

Please sign in to comment.