Robbepop / modular-bitfield

Macro to generate bitfields for structs that allow for modular use of enums.
Apache License 2.0
155 stars 40 forks source link

Get reference and mutable reference to bytes #71

Open Ace314159 opened 2 years ago

Ace314159 commented 2 years ago

Currently calling into_bytes() consumes the object, but it would be nice to have access to the bytes via a reference or mutable reference.

Qyriad commented 2 years ago

Seconding this — even a non-mutable reference could possibly be a make-or-break feature for me.