Function re_query::clamped_zip::generated::clamped_zip_2x5

source ·
pub fn clamped_zip_2x5<R0, R1, O0, O1, O2, O3, O4, D0, D1, D2, D3, D4>(
    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
) -> ClampedZip2x5<R0::IntoIter, R1::IntoIter, O0::IntoIter, O1::IntoIter, O2::IntoIter, O3::IntoIter, O4::IntoIter, D0, D1, D2, D3, D4> 
where R0: IntoIterator, R1: IntoIterator, O0: IntoIterator, O0::Item: Clone, O1: IntoIterator, O1::Item: Clone, O2: IntoIterator, O2::Item: Clone, O3: IntoIterator, O3::Item: Clone, O4: IntoIterator, O4::Item: Clone, D0: Fn() -> O0::Item, D1: Fn() -> O1::Item, D2: Fn() -> O2::Item, D3: Fn() -> O3::Item, D4: Fn() -> O4::Item,
Expand description

Returns a new ClampedZip2x5 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) 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) will be executed and the resulting value repeated as necessary.