parity_wasm::elements
pub fn serialize<T: Serialize>(val: T) -> Result<Vec<u8>, T::Error>
Create buffer with serialized value.