Function rerun::external::re_query::clamped_zip_1x1
source · pub fn clamped_zip_1x1<R0, O0, D0>(
r0: R0,
o0: O0,
o0_default_fn: D0
) -> ClampedZip1x1<<R0 as IntoIterator>::IntoIter, <O0 as IntoIterator>::IntoIter, D0> ⓘwhere
R0: IntoIterator,
O0: IntoIterator,
<O0 as IntoIterator>::Item: Clone,
D0: Fn() -> <O0 as IntoIterator>::Item,
Expand description
Returns a new ClampedZip1x1
iterator.
The number of elements in a clamped zip iterator corresponds to the number of elements in the
shortest of its required iterators (r0
).
Optional iterators (o0
) will repeat their latest values if they happen to be too short
to be zipped with the shortest of the required iterators.
If an optional iterator is not only too short but actually empty, its associated default function
(o0_default_fn
) will be executed and the resulting value repeated as necessary.