Hide the items while waiting for the ACP
This commit is contained in:
parent
d62b903892
commit
71bb200225
@ -57,11 +57,8 @@ use crate::mem::ManuallyDrop;
|
|||||||
/// assert_eq!(None, it.next());
|
/// assert_eq!(None, it.next());
|
||||||
/// ```
|
/// ```
|
||||||
#[inline]
|
#[inline]
|
||||||
#[unstable(
|
#[unstable(feature = "iter_repeat_n", issue = "104434")]
|
||||||
feature = "iter_repeat_n",
|
#[doc(hidden)] // waiting on ACP#120 to decide whether to expose publicly
|
||||||
reason = "waiting on FCP to decide whether to expose publicly",
|
|
||||||
issue = "104434"
|
|
||||||
)]
|
|
||||||
pub fn repeat_n<T: Clone>(element: T, count: usize) -> RepeatN<T> {
|
pub fn repeat_n<T: Clone>(element: T, count: usize) -> RepeatN<T> {
|
||||||
let mut element = ManuallyDrop::new(element);
|
let mut element = ManuallyDrop::new(element);
|
||||||
|
|
||||||
@ -80,11 +77,8 @@ pub fn repeat_n<T: Clone>(element: T, count: usize) -> RepeatN<T> {
|
|||||||
/// This `struct` is created by the [`repeat_n()`] function.
|
/// This `struct` is created by the [`repeat_n()`] function.
|
||||||
/// See its documentation for more.
|
/// See its documentation for more.
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
#[unstable(
|
#[unstable(feature = "iter_repeat_n", issue = "104434")]
|
||||||
feature = "iter_repeat_n",
|
#[doc(hidden)] // waiting on ACP#120 to decide whether to expose publicly
|
||||||
reason = "waiting on FCP to decide whether to expose publicly",
|
|
||||||
issue = "104434"
|
|
||||||
)]
|
|
||||||
pub struct RepeatN<A> {
|
pub struct RepeatN<A> {
|
||||||
count: usize,
|
count: usize,
|
||||||
// Invariant: has been dropped iff count == 0.
|
// Invariant: has been dropped iff count == 0.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user