Struct heed_types::DecodeIgnore
source · pub struct DecodeIgnore;Expand description
A convenient struct made to ignore the type when decoding it.
It is appropriate to be used to count keys for example or to ensure that an entry exist for example.
Trait Implementations§
source§impl BytesDecode<'_> for DecodeIgnore
impl BytesDecode<'_> for DecodeIgnore
type DItem = ()
fn bytes_decode(_bytes: &[u8]) -> Result<Self::DItem, BoxedError>
Auto Trait Implementations§
impl RefUnwindSafe for DecodeIgnore
impl Send for DecodeIgnore
impl Sync for DecodeIgnore
impl Unpin for DecodeIgnore
impl UnwindSafe for DecodeIgnore
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