Skip to main content

write_layer

Function write_layer 

Source
pub fn write_layer<'a, C: Container<Ref<'a>: Ord>>(
    lists0: <Lists<C> as Borrow>::Borrowed<'a>,
    lists1: <Lists<C> as Borrow>::Borrowed<'a>,
    list_survey: &[Report],
    item_survey: &[Report],
    output: &mut Lists<C>,
)
Expand description

Write one layer of merged output from a list survey and item survey.

The list survey describes which lists to produce (from the layer above). The item survey describes how the items within those lists interleave. Both surveys are consumed completely; a mismatch is a bug.

Pruning (from cursor adjustments) can affect the first and last list survey entries: the item survey’s ranges may not match the natural bounds of those lists. Middle entries are guaranteed unpruned and can be bulk-copied.