Function re_space_view::external::re_query::clamped_zip::clamped_zip_2x6
source · pub fn clamped_zip_2x6<R0, R1, O0, O1, O2, O3, O4, O5, D0, D1, D2, D3, D4, D5>(
r0: R0,
r1: R1,
o0: O0,
o0_default_fn: D0,
o1: O1,
o1_default_fn: D1,
o2: O2,
o2_default_fn: D2,
o3: O3,
o3_default_fn: D3,
o4: O4,
o4_default_fn: D4,
o5: O5,
o5_default_fn: D5
) -> ClampedZip2x6<<R0 as IntoIterator>::IntoIter, <R1 as IntoIterator>::IntoIter, <O0 as IntoIterator>::IntoIter, <O1 as IntoIterator>::IntoIter, <O2 as IntoIterator>::IntoIter, <O3 as IntoIterator>::IntoIter, <O4 as IntoIterator>::IntoIter, <O5 as IntoIterator>::IntoIter, D0, D1, D2, D3, D4, D5> ⓘwhere
R0: IntoIterator,
R1: IntoIterator,
O0: IntoIterator,
<O0 as IntoIterator>::Item: Clone,
O1: IntoIterator,
<O1 as IntoIterator>::Item: Clone,
O2: IntoIterator,
<O2 as IntoIterator>::Item: Clone,
O3: IntoIterator,
<O3 as IntoIterator>::Item: Clone,
O4: IntoIterator,
<O4 as IntoIterator>::Item: Clone,
O5: IntoIterator,
<O5 as IntoIterator>::Item: Clone,
D0: Fn() -> <O0 as IntoIterator>::Item,
D1: Fn() -> <O1 as IntoIterator>::Item,
D2: Fn() -> <O2 as IntoIterator>::Item,
D3: Fn() -> <O3 as IntoIterator>::Item,
D4: Fn() -> <O4 as IntoIterator>::Item,
D5: Fn() -> <O5 as IntoIterator>::Item,
Expand description
Returns a new ClampedZip2x6
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
, o1
, o2
, o3
, o4
, o5
) 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
, o1_default_fn
, o2_default_fn
, o3_default_fn
, o4_default_fn
, o5_default_fn
) will be executed and the resulting value repeated as necessary.