#[stable(feature = "rust1", since = "1.0.0")]
pub use self::sources::{Repeat, repeat};
-#[unstable(feature = "iterator_repeat_with", issue = "0")]
+#[unstable(feature = "iterator_repeat_with", issue = "48169")]
pub use self::sources::{RepeatWith, repeat_with};
#[stable(feature = "iter_empty", since = "1.2.0")]
pub use self::sources::{Empty, empty};
///
/// [`repeat_with`]: fn.repeat_with.html
#[derive(Copy, Clone, Debug)]
-#[unstable(feature = "iterator_repeat_with", issue = "0")]
+#[unstable(feature = "iterator_repeat_with", issue = "48169")]
pub struct RepeatWith<F> {
repeater: F
}
-#[unstable(feature = "iterator_repeat_with", issue = "0")]
+#[unstable(feature = "iterator_repeat_with", issue = "48169")]
impl<A, F: FnMut() -> A> Iterator for RepeatWith<F> {
type Item = A;
fn size_hint(&self) -> (usize, Option<usize>) { (usize::MAX, None) }
}
-#[unstable(feature = "iterator_repeat_with", issue = "0")]
+#[unstable(feature = "iterator_repeat_with", issue = "48169")]
impl<A, F: FnMut() -> A> DoubleEndedIterator for RepeatWith<F> {
#[inline]
fn next_back(&mut self) -> Option<A> { self.next() }
/// assert_eq!(None, pow2.next());
/// ```
#[inline]
-#[unstable(feature = "iterator_repeat_with", issue = "0")]
+#[unstable(feature = "iterator_repeat_with", issue = "48169")]
pub fn repeat_with<A, F: FnMut() -> A>(repeater: F) -> RepeatWith<F> {
RepeatWith { repeater }
}