meilisearch / heed

A fully typed LMDB wrapper with minimum overhead 🐦
https://docs.rs/heed
MIT License
519 stars 52 forks source link

Introduce the `remap` method on the `Lazy` type #221

Closed Kerollmops closed 8 months ago

Kerollmops commented 8 months ago

This PR introduces a new method to change the codec of a LazyDecoded type. The Lazy type returned can be set to decode into another type on demand and doesn't consume the original Lazy type; Therefore, it can be first decoded into something to change the way it is effectively decoded later on.