grin/chain/src
hashmap 2397407dc4
Always return a typed structure from lmdb store (#3312)
We have a method get which returns a Vec, it's used in cases when we can't implement FromLmdbBytes or Readable on a desired type, eg when both traits and type are external for the current crate. This approach requires an extra allocation of a Vec, this PR introduces a method which accepts desirialzer as closure, which allows to desrialize in place without an intermidiate heap allocation.

It's still possible to get a Vec if needed, just pass a Vec constructor to get_with.
2020-05-05 11:00:23 +02:00
..
txhashset Refactor Readable trait (#3309) 2020-04-30 17:42:19 +02:00
chain.rs Less cloning and pattern simplifications (#3305) 2020-04-24 11:19:34 +02:00
error.rs Update License to 2020 (#3196) 2020-01-20 11:40:58 +00:00
lib.rs Refactor SyncState (#3297) 2020-04-20 12:30:04 +02:00
pipe.rs Less cloning and pattern simplifications (#3305) 2020-04-24 11:19:34 +02:00
store.rs Always return a typed structure from lmdb store (#3312) 2020-05-05 11:00:23 +02:00
txhashset.rs Update License to 2020 (#3196) 2020-01-20 11:40:58 +00:00
types.rs Refactor Readable trait (#3309) 2020-04-30 17:42:19 +02:00