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

Support char iterators #3

Open
tmfink opened this issue Sep 13, 2020 · 1 comment
Open

Support char iterators #3

tmfink opened this issue Sep 13, 2020 · 1 comment

Comments

@tmfink
Copy link
Contributor

tmfink commented Sep 13, 2020

There are times when it is desirable to work with a struct that gives constant-time access to chars (such as Vec<char> or VecDeque<char>), but currently the APIs return a String (or take a &str as input).

Currently, users must translate to/from String to work with certain APIs (such as katakana_to_hiragana()). We should try to support iterators over char as input/output.

@PSeitz
Copy link
Owner

PSeitz commented Sep 14, 2020

For the input this should be easy, but for the output it's a little bit more effort. But I'm not sure this would reflect best practices, since this is true for every api which accepts &str or String

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

No branches or pull requests

2 participants