We need consuming iterators of GRanges and GRangesEmpty objects — not only will this clean up the API but it could be faster.
See IntoIterableRangesContainer in src/ranges/vec.rs for an idea of how ranges could be consumed.
With data, it's trickier. IndexDataContainer doesn't handle consuming; could be a new trait?
We need consuming iterators of
GRangesandGRangesEmptyobjects — not only will this clean up the API but it could be faster.See
IntoIterableRangesContainerinsrc/ranges/vec.rsfor an idea of how ranges could be consumed.With data, it's trickier.
IndexDataContainerdoesn't handle consuming; could be a new trait?