pub struct NilDecoder;
Expand description
Decode the MessagePack nil
value.
Trait Implementations§
Source§impl<'de> DecodeBorrowed<'de> for NilDecoder
impl<'de> DecodeBorrowed<'de> for NilDecoder
Source§fn decode_borrowed_with_format<R>(
format: Format,
_reader: &mut R,
) -> Result<Self::Value, Error<R::Error>>where
R: IoRead<'de>,
fn decode_borrowed_with_format<R>(
format: Format,
_reader: &mut R,
) -> Result<Self::Value, Error<R::Error>>where
R: IoRead<'de>,
Decode with a previously read
Format
.Source§fn decode_borrowed<R>(
reader: &mut R,
) -> Result<<Self as DecodeBorrowed<'de>>::Value, Error<R::Error>>where
R: IoRead<'de>,
fn decode_borrowed<R>(
reader: &mut R,
) -> Result<<Self as DecodeBorrowed<'de>>::Value, Error<R::Error>>where
R: IoRead<'de>,
Decode the next value.
Auto Trait Implementations§
impl Freeze for NilDecoder
impl RefUnwindSafe for NilDecoder
impl Send for NilDecoder
impl Sync for NilDecoder
impl Unpin for NilDecoder
impl UnwindSafe for NilDecoder
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
Source§impl<'de, T> Decode<'de> for Twhere
T: DecodeBorrowed<'de> + 'de,
impl<'de, T> Decode<'de> for Twhere
T: DecodeBorrowed<'de> + 'de,
Source§type Value<'a> = <T as DecodeBorrowed<'de>>::Value
where
'de: 'a,
T: 'a
type Value<'a> = <T as DecodeBorrowed<'de>>::Value where 'de: 'a, T: 'a
The decoded value (may borrow for
'a
).