[][src]Function elrond_codec::decode_from_byte_slice

pub fn decode_from_byte_slice<D: Decode>(input: &[u8]) -> Result<D, DecodeError>

Convenience method, to avoid having to specify type when calling top_decode. Especially useful in the macros.