Function elrond_codec::dep_decode_from_byte_slice [−][src]
pub fn dep_decode_from_byte_slice<D: NestedDecode>(
input: &[u8]
) -> Result<D, DecodeError>
Expand description
Convenience method, to avoid having to specify type when calling dep_decode
.
Especially useful in the macros.
Also checks that the entire slice was used.
The input doesn’t need to be mutable because we are not changing the underlying data.