Crate rle

Crate rle 

Source

Modules§

take_max_iter
This file implements an iterator which can take up to n items at a time from a splitablespan iterator.
zip

Structs§

MergeIter
This is an iterator composer which wraps any iterator over a SplitableSpan to become an iterator over those same items in run-length order.
ReverseSpan
A splitablespan in reverse. This is useful for making lists in descending order.
RleRun
A splitablespan which contains a single element repeated N times. This is used in some examples.
Single
A SplitableSpan wrapper for any single item.
WithCtx

Traits§

AppendRle
HasLength
MergableSpan
MergeableIterator
Searchable
SplitAndJoinSpan
An entry is expected to contain multiple items.
SplitAndJoinSpanCtx
SplitableSpan
SplitableSpanCtx
SplitableSpanHelpers
Trim
TrimCtx

Functions§

merge_items
test_splitable_methods_valid
Simple test helper to verify an implementation of SplitableSpan is valid and meets expected constraints.
test_splitable_methods_valid_ctx