kyren / gc-arena

Incremental garbage collection from safe Rust
Creative Commons Zero v1.0 Universal
436 stars 36 forks source link

Add methods to project `Write<Option<_>>` and `Write<Result<_, _>>` #80

Closed moulins closed 10 months ago

moulins commented 10 months ago

Some dumb Write projection methods I found the need for while hacking on Ruffle; ideally there would be a generic safe destructuring macro supporting enums, but this is much simpler to implement ^^

kyren commented 10 months ago

Yeah, it would be nice to have a write macro for enums but even in the presence of such a macro, these methods are hardly harmful, lgtm!