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

Currently, the following is not supported: ```rust #[bitfield] pub struct Testing { #[skip] __: [bool; 512], } ``` It will complain with the error below: ```rust error[E0277]: the trait bound...

There is unwanted warnings if one of these function not called in client code.

Hi! I'm trying to use `modular_bitfield` for an array of registers, which all follow the same format, but I'd like them to have different types. Thus, I have written the...

Specifying #[repr(...)] on an unfilled bitfield results in `error: encountered conflicting `#[repr(u16)]` and `filled = false` parameters`. It would make sense to accept this combination and generate `TryFrom` instead of...

I'm considering using this library .. I'm needing to create large arrays of these. What is the overhead as far as memory? I am storing nibble sized structs with two...

Would it be possible to create a trait where the `Bitfield` methods are defined? Or maybe this already exists? Thinking about the following: * `from_bytes` * `as_bytes` I want to...

feature requrest

Hello there, I just tried to create ``` #[derive(BitfieldSpecifier)] pub enum Granularity { Bytes = 0, Scale4K = 1, } ``` which failes because of ambiguity: ``` error: ambiguous associated...

https://doc.rust-lang.org/reference/items/unions.html > The key property of unions is that all fields of a union share common storage. As a result, writes to one field of a union can overwrite its...

Hi, I currently use bitfields to write bytes to and/or read bytes from a data bus. As some bitfields are only received while others are only sent, the bitfields cause...

enhancement
feature requrest

Resolves #66. Previously, `From` implementations may have expanded to code similar to the following: ``` ... where [(); { Size }]: ::modular_bitfield::private::IsU32Compatible, ... ``` Where `Size` is a constant expression...