core::iter::repeat_with: derive Copy, Clone, Debug

This commit is contained in:
Mazdak Farrokhzad 2018-02-12 08:35:12 +01:00
parent c4099ca4b1
commit 1af9ee1350

View file

@ -112,6 +112,7 @@ pub fn repeat<T: Clone>(elt: T) -> Repeat<T> {
/// See its documentation for more.
///
/// [`repeat_with`]: fn.repeat_with.html
#[derive(Copy, Clone, Debug)]
#[unstable(feature = "iterator_repeat_with", issue = "0")]
pub struct RepeatWith<F> {
repeater: F