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

Index access for String #551

Closed
sunng87 opened this issue Jun 25, 2019 · 2 comments
Closed

Index access for String #551

sunng87 opened this issue Jun 25, 2019 · 2 comments

Comments

@sunng87
Copy link

sunng87 commented Jun 25, 2019

At the moment, get on Value supports both Array and Map. It will be nice to support String too, for returning single char as borrowed Json String

@sunng87
Copy link
Author

sunng87 commented Jun 25, 2019

Related sunng87/handlebars-rust#269

@dtolnay
Copy link
Member

dtolnay commented Jun 25, 2019

I would prefer if this could be implemented by handlebars instead. get returns a &Value and there is no borrowable Value corresponding to substrings of a Value::String.

@dtolnay dtolnay closed this as completed Jun 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants