CosmWasm / cw-storage-plus

Storage abstractions for CosmWasm smart contracts
Apache License 2.0
37 stars 27 forks source link

Allow using references when dealing with owned key types #71

Open uint opened 11 months ago

uint commented 11 months ago

E.g. if we have a map: Map<String, _>, it would be nice to be able to access values using something like self.map.get(&mut storage, "mykey"), without the extra allocation/cloning.

@hashedone originally asked to investigate this.