pub trait TopDecodeMultiInput: Sized {
    type ValueInput: TopDecodeInput;

    fn has_next(&self) -> bool;
    fn next_value_input<H>(
        &mut self,
        h: H
    ) -> Result<Self::ValueInput, H::HandledErr>
    where
        H: DecodeErrorHandler
; fn next_value<T, H>(&mut self, h: H) -> Result<T, H::HandledErr>
    where
        T: TopDecode,
        H: DecodeErrorHandler
, { ... } fn assert_no_more_args<H>(&self, h: H) -> Result<(), H::HandledErr>
    where
        H: DecodeErrorHandler
, { ... } fn flush_ignore<H>(&mut self, h: H) -> Result<(), H::HandledErr>
    where
        H: DecodeErrorHandler
, { ... } }

Required Associated Types§

Required Methods§

Check if there are more arguments that can be loaded.

Retrieves an input for deserializing an argument. If the loader is out of arguments, it will crash by itself with an appropriate error, without returning. Use if the next argument is optional, use has_next beforehand.

Provided Methods§

Called after retrieving all arguments to validate that extra arguments were not provided.

Consumes all inputs and ignores them. After executing this, assert_no_more_args should not fail.

Implementors§