yadon 0.1.1

`Write + Seek` which stores operations and can later apply them to another `Write + Seek`
Documentation
  • Coverage
  • 94.12%
    16 out of 17 items documented1 out of 6 items with examples
  • Size
  • Source code size: 57.88 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 514.26 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • vivlim/yadon
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • vivlim

yadon

picture of the Pokémon Slowpoke, whose original Japanese name is Yadon

why write now, when you can write later?

Yadon is a struct which implements Write + Seek but doesn't actually write anything until later, when you call .apply().

why

yes I was trying to push a generic write operation using binrw through a channel to be actually performed on another thread, and being able to store the result of the write operation meant I sidestepped some particularly hairy issues where I would have had to store trait objects which had an associated generic function - impossible since having that associated generic function made the entire trait not 'object safe'.