hecatia-elegua / bilge

Use bitsized types as if they were a feature of rust.
Apache License 2.0
171 stars 17 forks source link

Implement Binary formatting? #8

Closed hecatia-elegua closed 1 year ago

hecatia-elegua commented 1 year ago

(possibly for arbitrary-int as well)

Most useful would be sth like {:b?}, which is currently not possible. Still, providing a derive for Binary on bitfields would be nice. We should format it with underscores denoting fields: 00_100_00010