devela/data/iter/
reexports.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
// devela::data::iter::reexports
//
//! Reexported items from `core`.
//
// - WAIT: [iter_map_windows](https://github.com/rust-lang/rust/issues/87155)
// - WAIT: [iter_array_chunks](https://github.com/rust-lang/rust/issues/100450)
// - WAIT: [iter_intersperse](https://github.com/rust-lang/rust/issues/79524)
// - WAIT: [step_trait](https://github.com/rust-lang/rust/issues/42168)
// - WAIT: [trusted_len](https://github.com/rust-lang/rust/issues/37572)
// - WAIT: [trusted_step](https://github.com/rust-lang/rust/issues/85731)
// - WAIT: [iter_from_coroutine](https://github.com/rust-lang/rust/issues/43122) TODO nightly

use crate::code::reexport;

/* types */

reexport! { rust: core::iter,
    tag: crate::TAG_ITERATOR!(),
    doc: "An iterator that links two iterators together, in a chain.",
    @Chain as IterChain
}
reexport! { rust: core::iter,
    tag: crate::TAG_ITERATOR!(),
    doc: "An iterator that clones the elements of an underlying iterator.",
    @Cloned as IterCloned
}
reexport! { rust: core::iter,
    tag: crate::TAG_ITERATOR!(),
    doc: "An iterator that copies the elements of an underlying iterator.",
    @Copied as IterCopied
}
reexport! { rust: core::iter,
    tag: crate::TAG_ITERATOR!(),
    doc: "An iterator that repeats endlessly.",
    @Cycle as IterCycle
}
reexport! { rust: core::iter,
    tag: crate::TAG_ITERATOR!(),
    doc: "An iterator that yields nothing.",
    @Empty as IterEmpty
}
reexport! { rust: core::iter,
    tag: crate::TAG_ITERATOR!(),
    doc: "An iterator that yields the current count and the element during iteration.",
    @Enumerate as IterEnumerate
}
reexport! { rust: core::iter,
    tag: crate::TAG_ITERATOR!(),
    doc: "An iterator that filters the elements of `iter` with `predicate`.",
    @Filter as IterFilter
}
reexport! { rust: core::iter,
    tag: crate::TAG_ITERATOR!(),
    doc: "An iterator that uses `f` to both filter and map elements from `iter`.",
    @FilterMap as IterFilterMap
}
reexport! { rust: core::iter,
    tag: crate::TAG_ITERATOR!(),
    doc: "An iterator that maps each element to an iterator, and yields their elements.",
    @FlatMap as IterFlatMap
}
reexport! { rust: core::iter,
    tag: crate::TAG_ITERATOR!(),
    doc: "An iterator that flattens one level of nesting in an iterator of iterables.",
    @Flatten as IterFlatten
}
reexport! { rust: core::iter,
    tag: crate::TAG_ITERATOR!(),
    doc: "An iterator where each iteration calls a closure `F: FnMut() -> Option<T>`.",
    @FromFn as IterFromFn
}
reexport! { rust: core::iter,
    tag: crate::TAG_ITERATOR!(),
    doc: "An iterator that yields `None` forever after the underlying yields `None` once.",
    @Fuse as IterFuse
}
reexport! { rust: core::iter,
    tag: crate::TAG_ITERATOR!(),
    doc: "An iterator that calls a fn with a reference to each element before yielding it.",
    @Inspect as IterInspect
}
reexport! { rust: core::iter,
    tag: crate::TAG_ITERATOR!(),
    doc: "An iterator that maps the values of iter with `f`.",
    @Map as IterMap
}
reexport! { rust: core::iter,
    tag: crate::TAG_ITERATOR!(),
    doc: "An iterator that only accepts elements while `predicate` returns `Some(_)`.",
    @MapWhile as IterMapWhile
}
reexport! { rust: core::iter,
    tag: crate::TAG_ITERATOR!(),
    doc: "An iterator that yields an element exactly once.",
    @Once as IterOnce
}
reexport! { rust: core::iter,
    tag: crate::TAG_ITERATOR!(),
    doc: "An iterator that yields a single element `A` by calling `F: FnOnce() -> A`.",
    @OnceWith as IterOnceWith
}
reexport! { rust: core::iter,
    tag: crate::TAG_ITERATOR!(),
    doc: "An iterator with a `peek()` that returns an optional ref to the next element.",
    @Peekable as IterPeekable
}
reexport! { rust: core::iter,
    tag: crate::TAG_ITERATOR!(),
    doc: "An iterator that repeats an element endlessly.",
    @Repeat as IterRepeat
}
reexport! { rust: core::iter,
    tag: crate::TAG_ITERATOR!(),
    doc: "An iterator that endlessly repeats `A` by calling `F: FnMut() -> A`.",
    @RepeatWith as IterRepeatWith
}
reexport! { rust: core::iter,
    tag: crate::TAG_ITERATOR!(),
    doc: "A double-ended iterator with the direction inverted.",
    @Rev as IterRev
}
reexport! { rust: core::iter,
    tag: crate::TAG_ITERATOR!(),
    doc: "An iterator to maintain state while iterating another iterator.",
    @Scan as IterScan
}
reexport! { rust: core::iter,
    tag: crate::TAG_ITERATOR!(),
    doc: "An iterator that skips over `n` elements of `iter`.",
    @Skip as IterSkip
}
reexport! { rust: core::iter,
    tag: crate::TAG_ITERATOR!(),
    doc: "An iterator that rejects elements while `predicate` returns `true`.",
    @SkipWhile as IterSkipWhile
}
reexport! { rust: core::iter,
    tag: crate::TAG_ITERATOR!(),
    doc: "An iterator for stepping iterators by a custom amount.",
    @StepBy as IterStepBy
}
reexport! { rust: core::iter,
    tag: crate::TAG_ITERATOR!(),
    doc: "An iterator where each successive item is computed based on the preceding one.",
    @Successors as IterSuccessors
}
reexport! { rust: core::iter,
    tag: crate::TAG_ITERATOR!(),
    doc: "An iterator that only iterates over the first `n` iterations of `iter`.",
    @Take as IterTake
}
reexport! { rust: core::iter,
    tag: crate::TAG_ITERATOR!(),
    doc: "An iterator that only accepts elements while `predicate` returns `true`.",
    @TakeWhile as IterTakeWhile
}
reexport! { rust: core::iter,
    tag: crate::TAG_ITERATOR!(),
    doc: "An iterator that iterates two other iterators simultaneously.",
    @Zip as IterZip
}

/* traits */

reexport! { rust: core::iter,
    doc: "An iterator able to yield elements from both ends.",
    @DoubleEndedIterator as IteratorDoubleEnded
}
reexport! { rust: core::iter,
    doc: "An iterator that knows its exact length.",
    @ExactSizeIterator as IteratorExactSize
}
reexport! { rust: core::iter,
    doc: "Extend a collection with the contents of an iterator.",
    @Extend as IteratorExtend
}
reexport! { rust: core::iter,
    doc: "Conversion from an [`Iterator`].",
    @FromIterator as IteratorFrom
}
reexport! { rust: core::iter,
    doc: "An iterator that always continues to yield `None` when exhausted.",
    @FusedIterator as IteratorFused
}
reexport! { rust: core::iter,
    doc: "Conversion into an [`Iterator`].",
    @IntoIterator as IteratorInto
}
reexport! { rust: core::iter,
    doc: "A trait for dealing with iterators.",
    Iterator
}
reexport! { rust: core::iter,
    doc: "Represents types that can be created by multiplying elements of an iterator.",
    @Product as IteratorProduct
}
reexport! { rust: core::iter,
    doc: "Represents types that can be created by summing up an iterator.",
    @Sum as IteratorSum
}

/* functions */

reexport! { rust: core::iter,
    extra_features: "nightly_coro",
    doc: "Creates an iterator where each iteration calls the provided coroutine.",
    @from_coroutine as iter_from_coroutine
}
reexport! { rust: core::iter,
    doc: "Creates an iterator that yields nothing.",
    @empty as iter_empty
}
reexport! { rust: core::iter,
    doc: "Creates an iterator that calls the given closure `F: FnMut() -> Option<T>`.",
    @from_fn as iter_from_fn
}
reexport! { rust: core::iter,
    doc: "Creates an iterator that yields an element exactly once.",
    @once as iter_once
}
reexport! { rust: core::iter,
    doc: "Creates an iterator that lazily generates a value exactly once.",
    @once_with as iter_once_with
}
reexport! { rust: core::iter,
    doc: "Creates an iterator that endlessly repeats a single element.",
    @repeat as iter_repeat
}
reexport! { rust: core::iter,
    doc: "Creates an iterator that endlessly repeats calling `F: FnMut() -> A`.",
    @repeat_with as iter_repeat_with
}
reexport! { rust: core::iter,
    doc: "Creates an iterator where each successive item is computed based on the previous.",
    @successors as iter_successors
}
reexport! { rust: core::iter,
    doc: "Converts the arguments to iterators and zips them.",
    @zip as iter_zip
}