Skip to content

Make handle fields private#194

Open
madsmtm wants to merge 1 commit intomasterfrom
private-fields
Open

Make handle fields private#194
madsmtm wants to merge 1 commit intomasterfrom
private-fields

Conversation

@madsmtm
Copy link
Member

@madsmtm madsmtm commented Feb 28, 2026

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

This unblocks doing either of:

@madsmtm madsmtm changed the base branch from master to madsmtm/split February 28, 2026 21:48
Base automatically changed from madsmtm/split to master March 1, 2026 02:16
@madsmtm madsmtm marked this pull request as ready for review March 1, 2026 02:23
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant