@foone BinWrite (or, certainly, its rewritten replacement BinRW, which I think is mostly drop-in) supports writing enums directly.
Notices by Jhynjhiruu (jhynjhiruu@toot.wales)
-
Jhynjhiruu (jhynjhiruu@toot.wales)'s status on Sunday, 21-Jul-2024 05:53:53 JST Jhynjhiruu -
Jhynjhiruu (jhynjhiruu@toot.wales)'s status on Sunday, 14-Jul-2024 09:02:28 JST Jhynjhiruu @foone https://doc.rust-lang.org/stable/std/iter/index.html#implementing-iterator
Use the standard library documentation where you can; it's great. https://docs.rs/std/ is a shortcut to it.