luminance-rs icon indicating copy to clipboard operation
luminance-rs copied to clipboard

Add wrapper_attr attribute to #derive(Semantics)

Open ColonelThirtyTwo opened this issue 2 years ago • 1 comments

Allows adding attributes to the wrapper structs, in particular derive. For example, allows the wrappers to derive bytemuck::Pod.

Also add #[repr(transparent)] to the wrappers, since there's no reason not to and should probably have them anyway for safety.

ColonelThirtyTwo avatar Jul 20 '22 01:07 ColonelThirtyTwo

The whole semantics part is going to change a lot so I’m not quite sure this is something that is going to work afterwards. Let me have a look at whether we can merge it first and then I will start the refactoring, or the other way around.

hadronized avatar Jul 31 '22 19:07 hadronized