Struct heed_types::Lazy
source · pub struct Lazy<'a, C> { /* private fields */ }Expand description
Owns bytes that can be decoded on demand.
Implementations§
source§impl<'a, C: BytesDecode<'a>> Lazy<'a, C>
impl<'a, C: BytesDecode<'a>> Lazy<'a, C>
sourcepub fn decode(&self) -> Result<C::DItem, BoxedError>
pub fn decode(&self) -> Result<C::DItem, BoxedError>
Decode the given bytes as DItem
Trait Implementations§
Auto Trait Implementations§
impl<'a, C> RefUnwindSafe for Lazy<'a, C>where C: RefUnwindSafe,
impl<'a, C> Send for Lazy<'a, C>where C: Send,
impl<'a, C> Sync for Lazy<'a, C>where C: Sync,
impl<'a, C> Unpin for Lazy<'a, C>where C: Unpin,
impl<'a, C> UnwindSafe for Lazy<'a, 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