insert_multiple 0.2.0

insert multiple items into a stream in reasonable runtime
Documentation
  • Coverage
  • 60%
    9 out of 15 items documented0 out of 9 items with examples
  • Size
  • Source code size: 10.25 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 741.9 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • coriolinus/insert_multiple
    0 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • coriolinus

insert_multiple: insert multiple items into a stream

The scenario: you have an input stream, and you know you wish to insert a number of items into this stream at known offsets.

If your stream is a String or a Vec<u8> or similar, you shouldn't do this naively: performance is O(n**2), and you have to care about looping backwards through the input stream to preserve your offsets.

This crate supports this use case in O(n).