Function scrypto::prelude::scrypto_encode
source · pub fn scrypto_encode<T>(value: &T) -> Result<Vec<u8>, EncodeError>where
T: ScryptoEncode + ?Sized,
Expand description
Encodes a data structure into byte array.
pub fn scrypto_encode<T>(value: &T) -> Result<Vec<u8>, EncodeError>where
T: ScryptoEncode + ?Sized,
Encodes a data structure into byte array.