michaelsproul / rust_radix_trie

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

Implement Clone for Trie #49

Closed manifest closed 5 years ago

manifest commented 5 years ago

At the moment, Trie doesn't implement Clone trait. That makes it difficult to use within other structs.

the trait `std::clone::Clone` is not implemented for `radix_trie::Trie<std::string::String, std::string::String>`
michaelsproul commented 5 years ago

Good point! It should be possible #[derive(Clone)] on Trie and TrieNode if you'd like to give it a go :)