ProxyConvertInFn

Type Alias ProxyConvertInFn 

Source
pub type ProxyConvertInFn = unsafe fn(PtrConst, PtrUninit) -> Result<PtrMut, String>;
Available on crate feature alloc only.
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.