anderslanglands / ustr

Fast, FFI-friendly string interning for Rust
Other
151 stars 26 forks source link

impl AsRef, PartialEq #40

Closed kornelski closed 1 month ago

kornelski commented 9 months ago

This adds a bunch of trait implementations that make Ustr more usable with other string-ish types.

kornelski commented 9 months ago

Yikes, unfortunately Borrow can't work with precomputed hashes ;(

virtualritz commented 1 month ago

This is very useful. Could this be merged and an update published?

anderslanglands commented 1 month ago

Thanks for this!