ProxyConvertOutFn

Type Alias ProxyConvertOutFn 

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

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

ยงSafety

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

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