Skip to content

Add missing derives to plain data types - #93

Merged
HEnquist merged 2 commits into
masterfrom
more-derives
Nov 23, 2026
Merged

HEnquist merged 2 commits into
masterfrom
more-derives

Conversation

@HEnquist

@HEnquist HEnquist commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Adds the derives and trait impls that the other small types already have.

  • SessionState: Clone, Copy, Hash
  • BufferFlags: Clone, Copy, PartialEq, Eq, Hash, Default
  • BufferInfo: Clone, Copy, PartialEq, Eq, Hash, Default
  • HardwareSupport: Clone, Copy, PartialEq, Eq, Hash
  • Device: Clone
  • EventCallbacks, DeviceEventCallbacks: Debug, showing which callbacks are set

SessionState gets Clone, Copy and Hash, like the other state enums.
BufferFlags and HardwareSupport get the full set.
BufferInfo gets everything except Hash.
@HEnquist HEnquist mentioned this pull request Nov 19, 2026
- Default for BufferFlags and BufferInfo, equal to none(), and Hash for BufferInfo
- Clone for Device
- Debug for EventCallbacks and DeviceEventCallbacks, showing which callbacks are set
@HEnquist HEnquist mentioned this pull request Nov 22, 2026
7 of 10 tasks
@HEnquist
HEnquist merged commit ced9ded into master Nov 23, 2026
3 checks passed
@HEnquist HEnquist mentioned this pull request Nov 23, 2026
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.

1 participant