jam1garner / binrw

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

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

Closed marxin closed 4 months ago

marxin commented 5 months 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.