multiversx_sc_codec

Function dep_encode_to_vec

Source
pub fn dep_encode_to_vec<T: NestedEncode>(
    obj: &T,
) -> Result<Vec<u8>, EncodeError>
Expand description

Convenience function for getting an object nested-encoded to a Vec directly.