[Rust] Shared String (#6367)

* Adds shared strings and tests for shared strings

* Adds resets on string_map

* Moved shared strings to use vector instead of hashmap

* Addresses all the issues

* Resolves some comments
This commit is contained in:
mustiikhalil
2021-01-04 17:18:35 +03:00
committed by GitHub
parent 44cf2bde19
commit 57f68e2896
3 changed files with 92 additions and 0 deletions

View File

@@ -93,6 +93,8 @@ impl<T> Clone for WIPOffset<T> {
}
}
impl<T> Eq for WIPOffset<T> {}
impl<T> PartialEq for WIPOffset<T> {
fn eq(&self, o: &WIPOffset<T>) -> bool {
self.value() == o.value()