ProxyConvertInFn

Type Alias ProxyConvertInFn 

Source
pub type ProxyConvertInFn = unsafe fn(proxy_ptr: PtrConst, target_ptr: PtrUninit) -> Result<PtrMut, String>;
Expand description

Function type for proxy deserialization: converts FROM proxy type INTO target type.

ยงSafety

  • proxy_ptr must point to a valid, initialized value of the proxy type
  • target_ptr must point to uninitialized memory suitable for the target type

On success, returns Ok(PtrMut) pointing to the initialized target value. On failure, returns Err(String) with an error message.