Merge pull request #771 from tlyu/iterators5-trait-tweak

fix(iterators5): derive Clone, Copy
This commit is contained in:
marisa 2021-06-24 14:17:05 +02:00 committed by GitHub
commit a3ea37b76e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -15,7 +15,7 @@
use std::collections::HashMap; use std::collections::HashMap;
#[derive(PartialEq, Eq)] #[derive(Clone, Copy, PartialEq, Eq)]
enum Progress { enum Progress {
None, None,
Some, Some,

View File

@ -798,7 +798,10 @@ test count_iterator.
The collection variable in count_collection_iterator is a slice of HashMaps. It The collection variable in count_collection_iterator is a slice of HashMaps. It
needs to be converted into an iterator in order to use the iterator methods. needs to be converted into an iterator in order to use the iterator methods.
The fold method can be useful in the count_collection_iterator function.""" The fold method can be useful in the count_collection_iterator function.
For a further challenge, consult the documentation for Iterator to find
a different method that could make your code more compact than using fold."""
# THREADS # THREADS