slog icon indicating copy to clipboard operation
slog copied to clipboard

Use Borrow<T> for keys instead of custom types

Open MOZGIII opened this issue 4 years ago • 1 comments

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>

MOZGIII avatar Oct 11 '19 07:10 MOZGIII

I believe it's due to object safety of Serializer

Kixunil avatar Nov 12 '21 15:11 Kixunil