Type Alias itertools::structs::Merge

source ·
pub type Merge<I, J> = MergeBy<I, J, MergeLte>;
Expand description

An iterator adaptor that merges the two base iterators in ascending order. If both base iterators are sorted (ascending), the result is sorted.

Iterator element type is I::Item.

See .merge() for more information.

Aliased Type§

struct Merge<I, J> {
    left: PutBack<Fuse<I>>,
    right: PutBack<Fuse<J>>,
    cmp_fn: MergeLte,
}

Fields§

§left: PutBack<Fuse<I>>§right: PutBack<Fuse<J>>§cmp_fn: MergeLte