Closed dheater closed 2 years ago
not currently, but I'm working on it. You can take a look at the "feature/nesting" branch and the tests/nested.rs file in there if you want a preview.
Nested layouts are implemented in https://github.com/smessmer/binary-layout/commit/3b67f467c7d390125376ba5d2430136e47da6232 and will be part of the 3.0 release
Is it possible to have nested layouts?
For example, I have a multibyte header that I want to define and reuse as a field in other layouts
Something like this: