pub struct LazyDecode<C>(/* private fields */);
Expand description
Lazily decodes the data bytes.
It can be used to avoid CPU-intensive decoding before making sure that it actually needs to be decoded (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§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> Freeze for LazyDecode<C>
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 0 bytes