bytemuck/derive/src
Tom Dohrmann 2d1f876216
various small fixes to the derive macros (#168)
* parse `repr(usize)` and `repr(isize)`

This can be used with enums.

* emit packed repr without type suffix

Previously we emitted the packed attribute with a type suffix for the
value `packed(4u32)`. This is not allowed. Instead we should emit
`packed(4)`.

* read bits instead of creating reference

This is required for packed structs where creating a reference to
fields is not allowed. We can make a copy of the bits because the bits
are `AnyBitPattern` which implies `Copy`.

* emit generics on implied traits
2023-01-25 21:49:46 -07:00
..
lib.rs various small fixes to the derive macros (#168) 2023-01-25 21:49:46 -07:00
traits.rs various small fixes to the derive macros (#168) 2023-01-25 21:49:46 -07:00