pub trait TopEncodeMulti: Sized {
    fn multi_encode<O>(&self, output: &mut O) -> Result<(), EncodeError>
    where
        O: TopEncodeMultiOutput
, { ... } fn multi_encode_or_handle_err<O, H>(
        &self,
        output: &mut O,
        h: H
    ) -> Result<(), H::HandledErr>
    where
        O: TopEncodeMultiOutput,
        H: EncodeErrorHandler
, { ... } }

Provided Methods§

Attempt to serialize the value to ouput.

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.

Implementations on Foreign Types§

Implementors§

All single top encode types also work as multi-value encode types.