Skip to content

Commit

Permalink
Merge pull request #296 from jturner314/foldwhile-eq
Browse files Browse the repository at this point in the history
Derive Eq and PartialEq for FoldWhile
  • Loading branch information
bluss committed Jun 30, 2018
2 parents 710d9f2 + 1ee4d16 commit bfe6167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2095,7 +2095,7 @@ pub fn partition<'a, A: 'a, I, F>(iter: I, mut pred: F) -> usize
/// An enum used for controlling the execution of `.fold_while()`.
///
/// See [`.fold_while()`](trait.Itertools.html#method.fold_while) for more information.
#[derive(Copy, Clone, Debug)]
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
pub enum FoldWhile<T> {
/// Continue folding with this value
Continue(T),
Expand Down

0 comments on commit bfe6167

Please sign in to comment.