diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-06-11 12:50:53 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-06-11 12:50:53 +0530 |
| commit | ea4949d44924444c29e9266708ba18f344487577 (patch) | |
| tree | d5795c8cc85931d45e410945c124e4df32eb7010 /src/libcore/option.rs | |
| parent | cf685cb8f887ea1e3f058e57490bfb44a5bfd7d4 (diff) | |
| parent | c00b859c9daf6e2c42bef89147e1da7eb05f3e4e (diff) | |
| download | rust-ea4949d44924444c29e9266708ba18f344487577.tar.gz rust-ea4949d44924444c29e9266708ba18f344487577.zip | |
Rollup merge of #26189 - bluss:iter-once-clone, r=Gankro
core: impl Clone for option::IntoIter and iter::Once
Diffstat (limited to 'src/libcore/option.rs')
| -rw-r--r-- | src/libcore/option.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/option.rs b/src/libcore/option.rs index 872186c09e2..30ca64028e7 100644 --- a/src/libcore/option.rs +++ b/src/libcore/option.rs @@ -865,6 +865,7 @@ impl<'a, A> DoubleEndedIterator for IterMut<'a, A> { impl<'a, A> ExactSizeIterator for IterMut<'a, A> {} /// An iterator over the item contained inside an Option. +#[derive(Clone)] #[stable(feature = "rust1", since = "1.0.0")] pub struct IntoIter<A> { inner: Item<A> } |
