mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-20 19:11:08 +03:00
2397407dc4
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. |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml |