pub struct NullDecoder;Expand description
Decoder producing Value::Null regardless of the payload’s non-null
contents. Registered internally when the payload’s null discriminator
is set. Users normally do not register this directly.
Trait Implementations§
Source§impl Clone for NullDecoder
impl Clone for NullDecoder
Source§fn clone(&self) -> NullDecoder
fn clone(&self) -> NullDecoder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NullDecoder
Source§impl Debug for NullDecoder
impl Debug for NullDecoder
Source§impl Default for NullDecoder
impl Default for NullDecoder
Source§fn default() -> NullDecoder
fn default() -> NullDecoder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NullDecoder
impl RefUnwindSafe for NullDecoder
impl Send for NullDecoder
impl Sync for NullDecoder
impl Unpin for NullDecoder
impl UnsafeUnpin for NullDecoder
impl UnwindSafe for NullDecoder
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