Function uniffi::try_lift_from_buffer[][src]

pub fn try_lift_from_buffer<T: ViaFfi>(buf: RustBuffer) -> Result<T>
Expand description

A helper function to lift a type by deserializing it from a buffer.

For complex types were it’s too fiddly or too unsafe to convert them into a special-purpose C-compatible value, you can use this helper function to implement lift() in terms of read() and receive the value as a serialzied byte buffer.