-
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
X11 generally uses the NO_KEYSYM
value, as alias for zero, to denote that a keysym is not present. Therefore it would make sense to use a NonZeroU32
as the backing type for the Keysym
type instead of u32
. This way, for Option<Keysym>
there is no ambiguity between None
and Some(NO_KEYSYM)
.
Cons:
- There may be a necessary difference between
None
andSome(NO_KEYSYM)
. - Requires raising the MSRV to 1.57 (although most of the windowing ecosystem is past that already so I wouldn't mind).
Metadata
Metadata
Assignees
Labels
No labels