[][src]Function elrond_codec::top_decode_from_nested_or_exit

pub fn top_decode_from_nested_or_exit<T, I, ExitCtx: Clone>(
    input: I,
    c: ExitCtx,
    exit: fn(_: ExitCtx, _: DecodeError) -> !
) -> T where
    I: TopDecodeInput,
    T: NestedDecode

Top-decodes the result using the NestedDecode implementation. Uses the fast-exit mechanism in case of error.