str and String currently do not implement Borrow<[u8]> because a string will hash differently when converted to a byte slice. A wrapper type should be included which wraps a str, implements ToOwned to a wrapper type for String, and both should implement Borrow<[u8]> and also a hash implementation which simply converts them to their byte slice and hashes that.
str
andString
currently do not implementBorrow<[u8]>
because a string will hash differently when converted to a byte slice. A wrapper type should be included which wraps astr
, implementsToOwned
to a wrapper type forString
, and both should implementBorrow<[u8]>
and also a hash implementation which simply converts them to their byte slice and hashes that.