#[derive(AnyBitPattern)]
{
// Attributes available to this derive:
#[bytemuck]
}
Expand description
Derive the AnyBitPattern trait for a struct
The macro ensures that the struct follows all the the safety requirements
for the AnyBitPattern trait.
The following constraints need to be satisfied for the macro to succeed
- All fields in the struct must to implement
AnyBitPattern