jam1garner / binrw

A Rust crate for helping parse and rebuild binary data using ✨macro magic✨.
https://binrw.rs
MIT License
545 stars 35 forks source link

docs: link magic to pre_assert for the enum variant selection #265

Closed marxin closed 2 weeks ago

marxin commented 1 month ago

It took me a non-trivial time to realize that there's an alternative approach to the enum variant selection where one can make the selection based on a provided attribute.