michaelsproul / rust_radix_trie

Fast generic radix trie implemented in Rust
https://docs.rs/radix_trie/
MIT License
184 stars 32 forks source link

Missing TrieKey impls for paths on Windows #54

Open michaelsproul opened 4 years ago

michaelsproul commented 4 years ago

Due to OsStrings not losslessly converting to UTF-8 (and therefore bytes) on Windows (see SO, Rust docs), we are currently missing an implementation of TrieKey for Path/PathBuf.

One solution might be to use the OsStr::to_string_lossy function.