An implementation of the AsKey trait, as proposed in #13. The primary goal of this PR is to improve the ergonomics of string keys, but it might be worth considering it as a venue to explore other key types as well.
A few things should be worth considering for review. Notably:
How future-proof are AsKey and Break as implemented? Should we already seek an approach that works with keys that diverge from Borrow, such as integers and slices thereof, tuples, and so on?
Before merging, there's some housekeeping to take care of:
An implementation of the
AsKey
trait, as proposed in #13. The primary goal of this PR is to improve the ergonomics of string keys, but it might be worth considering it as a venue to explore other key types as well.A few things should be worth considering for review. Notably:
AsKey
andBreak
as implemented? Should we already seek an approach that works with keys that diverge fromBorrow
, such as integers and slices thereof, tuples, and so on?Before merging, there's some housekeeping to take care of: