diff options
| author | Ulrik Sverdrup <root@localhost> | 2015-06-10 20:57:39 +0200 |
|---|---|---|
| committer | Ulrik Sverdrup <root@localhost> | 2015-06-10 20:58:09 +0200 |
| commit | c00b859c9daf6e2c42bef89147e1da7eb05f3e4e (patch) | |
| tree | d32d17a5e0acb1e9e35d6f607deff2b32e6ccc04 /src/libcore/iter.rs | |
| parent | 6daf1dcb80e324df94ad4a1d263c832ab589b33a (diff) | |
| download | rust-c00b859c9daf6e2c42bef89147e1da7eb05f3e4e.tar.gz rust-c00b859c9daf6e2c42bef89147e1da7eb05f3e4e.zip | |
core: impl Clone for option::IntoIter and iter::Once
Diffstat (limited to 'src/libcore/iter.rs')
| -rw-r--r-- | src/libcore/iter.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs index b12a1c1ed96..abee61ea9d6 100644 --- a/src/libcore/iter.rs +++ b/src/libcore/iter.rs @@ -3077,6 +3077,7 @@ pub fn empty<T>() -> Empty<T> { } /// An iterator that yields an element exactly once. +#[derive(Clone)] #[unstable(feature="iter_once", reason = "new addition")] pub struct Once<T> { inner: ::option::IntoIter<T> |
