modular-bitfield icon indicating copy to clipboard operation
modular-bitfield copied to clipboard

Macro to generate bitfields for structs that allow for modular use of enums.

Results 43 modular-bitfield issues
Sort by recently updated
recently updated
newest added

I recently hit a bug in packet parsing where I had a non-exhaustive enum, representing an Organization Identifier, which is represented using a non-exhaustive enum. This makes sense: its intractable...

Maybe add a way to make generated functions const where possible?

The use of `/` as a separator in the license field is deprecated. https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields

Firstly, thanks for such a great crate! I wish I had found it sooner... I tried searching through issues and couldn't find anything about byte arrays. Here is what I...

I am writing a crate to define data structures for the USB specifications and the device class definitions that go along with them. USB contains requests, which are 8-byte structures...

This should fix the formatting on https://docs.rs/modular-bitfield/latest/modular_bitfield/#example-primitive-types

This is a continuation of #67 where development seems to have stalled

Hi, I'm a beginner with rust (this is day 4). I very much like how easy it was to parse binary data with this library. I however needed some Endian...

I've come up with a basic implementation of `#[derive(BitfieldSpecifier)]` that works on struct-like enum variants, that is, algebraic data types. It stores a discriminant, which determines the enum variant and...

Thank you for the wonderful library. I don't know how to name what I'm looking for, so I'm calling them *polymorphic* bitfields by analogy with a similar concept I've seen...