Skip to content

Merge RawWindowHandle and WindowHandle<'w>#204

Draft
madsmtm wants to merge 3 commits intoprivate-fieldsfrom
madsmtm/merge-raw
Draft

Merge RawWindowHandle and WindowHandle<'w>#204
madsmtm wants to merge 3 commits intoprivate-fieldsfrom
madsmtm/merge-raw

Conversation

@madsmtm
Copy link
Member

@madsmtm madsmtm commented Feb 28, 2026

Makes using these easier, and allows writing more specific safety comments on each variant.

Fixes #178.

This allows structs to define additional safety invariants (which would
otherwise be trivial to override by modifying the field).

This allows done one of:
- Adding reference-counting to platform handles.
- Combining `WindowHandle<'_>` and `RawWindowHandle`.

Depending on what we want to do in the future.
@madsmtm madsmtm added the enhancement New feature or request label Feb 28, 2026
Makes using these easier, and allows writing more specific safety
comments on each variant.
@madsmtm madsmtm force-pushed the private-fields branch 3 times, most recently from bb7ffaf to 4316670 Compare March 1, 2026 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Development

Successfully merging this pull request may close these issues.

1 participant