You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 and Some(NO_KEYSYM).
Requires raising the MSRV to 1.57 (although most of the windowing ecosystem is past that already so I wouldn't mind).
The text was updated successfully, but these errors were encountered:
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 aNonZeroU32
as the backing type for theKeysym
type instead ofu32
. This way, forOption<Keysym>
there is no ambiguity betweenNone
andSome(NO_KEYSYM)
.Cons:
None
andSome(NO_KEYSYM)
.The text was updated successfully, but these errors were encountered: