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

Explicitly implement Borrow for String & Vec for non-nightly #115

Merged
merged 1 commit into from Sep 15, 2021

Conversation

Dr-Emann
Copy link
Contributor

@Dr-Emann Dr-Emann commented Sep 13, 2021

While it isn't as fully featured as the nightly version, this allows
using borrowed keys for get for what I believe are the most common
cases: Borrow<str> and Borrow<[T]>. I believe this is also backward
compatible with eventually enabling Borrow<D> where K: Borrow<D>.

Fixes #85

While it isn't as fully featured as the nightly version, this allows
using borrowed keys for `get` for what I believe are the most common
cases: `Borrow<str>` and `Borrow<[T]>`. I believe this is also backward
compatible with eventually enabling `Borrow<D> where K: Borrow<D>`.
@jeromefroe jeromefroe merged commit 0bf27e9 into jeromefroe:master Sep 15, 2021
@jeromefroe
Copy link
Owner

Thanks @Dr-Emann!

@Dr-Emann Dr-Emann deleted the explicit_borrow_str_slice branch September 15, 2021 11:46
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.

Using &str to fetch a value with a String key
2 participants