Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate Key into Character and NamedKey #50

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

madsmtm
Copy link
Contributor

@madsmtm madsmtm commented Dec 1, 2024

This makes most of the key Copy, and allows other crates like Winit to more easily use their own string types.

Part of #19.

See also rust-windowing/winit#2995 and rust-windowing/winit#3143 for discussion on a similar change in Winit.

WIP!

Fixes `Period` docs having invalid HTML, and allows us to more easily
parse more stuff in the future.
This makes most of the key Copy, and allows other crates like Winit to
more easily use their own string types.
@pyfisch
Copy link
Owner

pyfisch commented Dec 22, 2024

Please rebase the PR.

I wonder if it is possible to have a Key<T=String> which implements Copy if T is Copy as well? I don't really like having separate types for keys and named keys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants