yadon

Crates.ioyadon
lib.rsyadon
version0.1.1
sourcesrc
created_at2021-09-19 03:51:06.351417
updated_at2021-09-19 03:55:12.087491
description`Write + Seek` which stores operations and can later apply them to another `Write + Seek`
homepage
repositoryhttps://github.com/vivlim/yadon
max_upload_size
id453474
size57,880
Vivian Lim ⭐ (vivlim)

documentation

README

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'.

Commit count: 10

cargo fmt