Struct dharitri_codec::multi_types::IgnoreValue
source · pub struct IgnoreValue;Expand description
Structure that allows taking a variable number of arguments, but does nothing with them, not even deserialization.
Trait Implementations§
source§impl Clone for IgnoreValue
impl Clone for IgnoreValue
source§fn clone(&self) -> IgnoreValue
fn clone(&self) -> IgnoreValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for IgnoreValue
impl Default for IgnoreValue
source§fn default() -> IgnoreValue
fn default() -> IgnoreValue
Returns the “default value” for a type. Read more
source§impl TopDecodeMulti for IgnoreValue
impl TopDecodeMulti for IgnoreValue
fn multi_decode_or_handle_err<I, H>(
input: &mut I,
h: H
) -> Result<Self, H::HandledErr>where
I: TopDecodeMultiInput,
H: DecodeErrorHandler,
source§const IS_SINGLE_VALUE: bool = false
const IS_SINGLE_VALUE: bool = false
Used to optimize single value loading of endpoint arguments.
fn multi_decode<I>(input: &mut I) -> Result<Self, DecodeError>where
I: TopDecodeMultiInput,
source§impl TopEncodeMulti for IgnoreValue
impl TopEncodeMulti for IgnoreValue
source§fn multi_encode_or_handle_err<O, H>(
&self,
_output: &mut O,
_h: H
) -> Result<(), H::HandledErr>where
O: TopEncodeMultiOutput,
H: EncodeErrorHandler,
fn multi_encode_or_handle_err<O, H>(
&self,
_output: &mut O,
_h: H
) -> Result<(), H::HandledErr>where
O: TopEncodeMultiOutput,
H: EncodeErrorHandler,
Version of
top_encode that can handle errors as soon as they occur.
For instance in can exit immediately and make sure that if it returns, it is a success.
By not deferring error handling, this can lead to somewhat smaller bytecode.source§fn multi_encode<O>(&self, output: &mut O) -> Result<(), EncodeError>where
O: TopEncodeMultiOutput,
fn multi_encode<O>(&self, output: &mut O) -> Result<(), EncodeError>where
O: TopEncodeMultiOutput,
Attempt to serialize the value to ouput.
Auto Trait Implementations§
impl CodecFromSelf for IgnoreValue
impl RefUnwindSafe for IgnoreValue
impl Send for IgnoreValue
impl Sync for IgnoreValue
impl Unpin for IgnoreValue
impl UnwindSafe for IgnoreValue
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