-
-
Notifications
You must be signed in to change notification settings - Fork 20
Add keyval_to/is_upper/lower functions to Key
struct
#358
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, but maybe we should also add From<u32> for Key
and From<Key> for u32
impls? That's basically there already anyway via the DerefMut
/ Deref
impls
Is there any reason why this could cause problems?
oops, actually it appears I can convert without this PR:
I don't know why I struggled a lot for converting it to uppercase, that's why I suggested this PR.
Yes, though I think |
I agree, yes |
b10c4bd
to
15b126c
Compare
I guess |
since now |
I don't think we should keep them. |
58aa1cf
to
f298ca5
Compare
problems with |
You might need to add some |
Also `From<u32> for Key`
f298ca5
to
2038357
Compare
added:
keyval_is_upper
keyval_is_lower
keyval_to_upper
keyval_to_lower
As I could not use them in my project in the recent versions, here, As
u32
cannot be converted back intoKey
what do you think? @GuillaumeGomez