Function rerun::external::re_query::clamped_zip_2x1

source ·
pub fn clamped_zip_2x1<R0, R1, O0, D0>(
    r0: R0,
    r1: R1,
    o0: O0,
    o0_default_fn: D0
) -> ClampedZip2x1<<R0 as IntoIterator>::IntoIter, <R1 as IntoIterator>::IntoIter, <O0 as IntoIterator>::IntoIter, D0> 
where R0: IntoIterator, R1: IntoIterator, O0: IntoIterator, <O0 as IntoIterator>::Item: Clone, D0: Fn() -> <O0 as IntoIterator>::Item,
Expand description

Returns a new ClampedZip2x1 iterator.

The number of elements in a clamped zip iterator corresponds to the number of elements in the shortest of its required iterators (r0, r1).

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.