Skip to content

Conversation

@ColonelThirtyTwo
Copy link
Contributor

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.

@hadronized
Copy link
Owner

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.

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 ColonelThirtyTwo force-pushed the semantics-wrappers-attrs branch from a8c8282 to 7edc281 Compare December 2, 2022 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants