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

Use Borrow<T> for keys instead of custom types #238

Open
MOZGIII opened this issue Oct 11, 2019 · 1 comment
Open

Use Borrow<T> for keys instead of custom types #238

MOZGIII opened this issue Oct 11, 2019 · 1 comment

Comments

@MOZGIII
Copy link
Contributor

MOZGIII commented Oct 11, 2019

Why not use Borrow<T> for keys instead of custom types?

  • Key can be replaced with generic K: Borrow<str>
  • OwnedKV and BorrowedKV can be replaced with T: Borrow<KV>
@Kixunil
Copy link
Contributor

Kixunil commented Nov 12, 2021

I believe it's due to object safety of Serializer

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