Crate lockstep

Source
Expand description

§A lockstep iterator adaptor

The lockstep iterator adaptor is an adapter similar to zip, but instead uses a control flow closure to selectively skip elements from either the left or the right iterator, or yield the pair. This adaptor is primarily useful when working with sorted data.

The main entrypoint is the lockstep function; see its documentation for more detail and examples.

This crate is #![no_std] and #![forbid(unsafe_code)].

Structs§

Lockstep
An iterator which selectively increments either the left or right iterator, or yields elements from both.

Enums§

Control
The action to take given the current pair of items.

Functions§

lockstep
Returns a new Lockstep iterator adaptor.