Struct std::iter::RepeatN

source ·
pub struct RepeatN<A> {
    count: usize,
    element: ManuallyDrop<A>,
}
🔬This is a nightly-only experimental API. (iter_repeat_n #104434)
Expand description

An iterator that repeats an element an exact number of times.

This struct is created by the repeat_n() function. See its documentation for more.

Fields§

§count: usize
🔬This is a nightly-only experimental API. (iter_repeat_n #104434)
§element: ManuallyDrop<A>
🔬This is a nightly-only experimental API. (iter_repeat_n #104434)