Function hdi::prelude::return_ptr
source · pub fn return_ptr<R>(return_value: R) -> u128where
R: Serialize + Debug,
Expand description
Convert any serializable value into a GuestPtr
that can be returned to the host.
The host is expected to know how to consume and deserialize it.