There was an error while loading. Please reload this page.
1 parent 66557f8 commit a9b4c3eCopy full SHA for a9b4c3e
1 file changed
src/string.rs
@@ -268,6 +268,12 @@ impl AsRef<str> for BorrowedStr {
268
}
269
270
271
+impl Hash for BorrowedStr {
272
+ fn hash<H: Hasher>(&self, state: &mut H) {
273
+ self.buf.hash(state);
274
+ }
275
+}
276
+
277
impl fmt::Display for BorrowedStr {
278
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
279
self.buf.fmt(f)
@@ -349,6 +355,12 @@ impl AsRef<[u8]> for BorrowedBytes {
349
355
350
356
351
357
358
+impl Hash for BorrowedBytes {
359
360
361
362
363
352
364
impl fmt::Debug for BorrowedBytes {
353
365
354
366
0 commit comments