Add Bytes and BorrowedBytes traits that are used to represent map and set key types
Add GenericPatriciaMap<K: Bytes, V> and GenericPatriciaSet<K: Bytes>
They are generalized versions of the previous PatriciaMap<V> and PatriciaSet
PatriciaMap<V> and PatriciaSet are now defined as alias types as GenericPatriciaMap<Vec<u8>, V> andGenericPatriciaSet<Vec>` respectively
The newer types have compatibility with the older versions except for the newer versions don't have the insert_str() method
Add StringPatriciaMap<V> and StringPatriciaSet that are alias types defined as GenericPatriciaMap<String, V> and GenericPatriciaSet<String> respectively
Resolves #27.
This PR contains following changes:
Bytes
andBorrowedBytes
traits that are used to represent map and set key typesGenericPatriciaMap<K: Bytes, V>
andGenericPatriciaSet<K: Bytes>
PatriciaMap<V>
andPatriciaSet
PatriciaMap<V>
andPatriciaSet
are now defined as alias types asGenericPatriciaMap<Vec<u8>, V> and
GenericPatriciaSet<Vecinsert_str()
methodStringPatriciaMap<V>
andStringPatriciaSet
that are alias types defined asGenericPatriciaMap<String, V>
andGenericPatriciaSet<String>
respectively