multiversx_sc_codec

Trait TopDecodeMulti

Source
pub trait TopDecodeMulti: Sized {
    const IS_SINGLE_VALUE: bool = false;

    // Provided methods
    fn multi_decode<I>(input: &mut I) -> Result<Self, DecodeError>
       where I: TopDecodeMultiInput { ... }
    fn multi_decode_or_handle_err<I, H>(
        input: &mut I,
        h: H,
    ) -> Result<Self, H::HandledErr>
       where I: TopDecodeMultiInput,
             H: DecodeErrorHandler { ... }
}

Provided Associated Constants§

Source

const IS_SINGLE_VALUE: bool = false

Used to optimize single value loading of endpoint arguments.

Provided Methods§

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.

Implementations on Foreign Types§

Source§

impl TopDecodeMulti for ()

Implementors§

Source§

impl TopDecodeMulti for IgnoreValue

Source§

impl TopDecodeMulti for PlaceholderOutput

Source§

impl<T0, T1> TopDecodeMulti for MultiValue2<T0, T1>

Source§

impl<T0, T1, T2> TopDecodeMulti for MultiValue3<T0, T1, T2>

Source§

impl<T0, T1, T2, T3> TopDecodeMulti for MultiValue4<T0, T1, T2, T3>

Source§

impl<T0, T1, T2, T3, T4> TopDecodeMulti for MultiValue5<T0, T1, T2, T3, T4>

Source§

impl<T0, T1, T2, T3, T4, T5> TopDecodeMulti for MultiValue6<T0, T1, T2, T3, T4, T5>

Source§

impl<T0, T1, T2, T3, T4, T5, T6> TopDecodeMulti for MultiValue7<T0, T1, T2, T3, T4, T5, T6>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7> TopDecodeMulti for MultiValue8<T0, T1, T2, T3, T4, T5, T6, T7>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> TopDecodeMulti for MultiValue9<T0, T1, T2, T3, T4, T5, T6, T7, T8>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> TopDecodeMulti for MultiValue10<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> TopDecodeMulti for MultiValue11<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> TopDecodeMulti for MultiValue12<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> TopDecodeMulti for MultiValue13<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> TopDecodeMulti for MultiValue14<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> TopDecodeMulti for MultiValue15<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> TopDecodeMulti for MultiValue16<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>

Source§

impl<T> TopDecodeMulti for OptionalValue<T>
where T: TopDecodeMulti,

Source§

impl<T> TopDecodeMulti for MultiValueVec<T>
where T: TopDecodeMulti,

Source§

impl<T> TopDecodeMulti for T
where T: TopDecode,

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