We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39c77f1 commit 9d1f4afCopy full SHA for 9d1f4af
heed-types/src/lazy_decode.rs
@@ -24,12 +24,14 @@ pub struct Lazy<'a, C> {
24
_phantom: marker::PhantomData<C>,
25
}
26
27
-impl<'a, C: heed_traits::BytesDecode<'a>> Lazy<'a, C> {
+impl<'a, C> Lazy<'a, C> {
28
/// Change the codec type of the given bytes, specifying the new codec.
29
pub fn remap<NC>(&self) -> Lazy<'a, NC> {
30
Lazy { data: self.data, _phantom: marker::PhantomData }
31
32
+}
33
34
+impl<'a, C: heed_traits::BytesDecode<'a>> Lazy<'a, C> {
35
/// Decode the given bytes as `DItem`.
36
pub fn decode(&self) -> Result<C::DItem, BoxedError> {
37
C::bytes_decode(self.data)
0 commit comments