Skip to content

Commit

Permalink
Implement ExactSizeIterator for Values.
Browse files Browse the repository at this point in the history
  • Loading branch information
frewsxcv committed Feb 26, 2017
1 parent 6ec8066 commit 9ab7e6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/args/arg_matches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,8 @@ impl<'a> DoubleEndedIterator for Values<'a> {
fn next_back(&mut self) -> Option<&'a str> { self.iter.next_back() }
}

impl<'a> ExactSizeIterator for Values<'a> {}

/// An iterator over the key-value pairs of a map.
#[derive(Clone)]
pub struct Iter<'a, V: 'a> {
Expand Down

0 comments on commit 9ab7e6d

Please sign in to comment.