Struct heed_types::LazyDecode
source · pub struct LazyDecode<C>(_);Expand description
Lazily decode the data bytes, it can be used to avoid CPU intensive decoding before making sure we really need to decode it (e.g. based on the key).
Trait Implementations§
source§impl<'a, C: 'static> BytesDecode<'a> for LazyDecode<C>
impl<'a, C: 'static> BytesDecode<'a> for LazyDecode<C>
source§fn bytes_decode(bytes: &'a [u8]) -> Result<Self::DItem, BoxedError>
fn bytes_decode(bytes: &'a [u8]) -> Result<Self::DItem, BoxedError>
Decode the given bytes as DItem
source§impl<C: Default> Default for LazyDecode<C>
impl<C: Default> Default for LazyDecode<C>
source§fn default() -> LazyDecode<C>
fn default() -> LazyDecode<C>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<C> RefUnwindSafe for LazyDecode<C>where C: RefUnwindSafe,
impl<C> Send for LazyDecode<C>where C: Send,
impl<C> Sync for LazyDecode<C>where C: Sync,
impl<C> Unpin for LazyDecode<C>where C: Unpin,
impl<C> UnwindSafe for LazyDecode<C>where C: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more