multiversx_sc_codec

Trait TopEncodeMultiOutput

Source
pub trait TopEncodeMultiOutput {
    // Required method
    fn push_single_value<T, H>(
        &mut self,
        arg: &T,
        h: H,
    ) -> Result<(), H::HandledErr>
       where T: TopEncode,
             H: EncodeErrorHandler;

    // Provided method
    fn push_multi_specialized<T, H>(
        &mut self,
        _arg: &T,
        h: H,
    ) -> Result<(), H::HandledErr>
       where T: TryStaticCast,
             H: EncodeErrorHandler { ... }
}

Required Methods§

Source

fn push_single_value<T, H>( &mut self, arg: &T, h: H, ) -> Result<(), H::HandledErr>

Provided Methods§

Source

fn push_multi_specialized<T, H>( &mut self, _arg: &T, h: H, ) -> Result<(), H::HandledErr>

This is temporary, will remove after we get rid of SCResult for good.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§