SerializeWithFn

Type Alias SerializeWithFn 

Source
pub type SerializeWithFn = for<'mem> unsafe fn(source: PtrConst<'mem>, target: PtrUninit<'mem>) -> Result<PtrMut<'mem>, String>;
Expand description

A function that, if preset, is called during custom serialization to convert the source type into the target shape, which is then serialized in place of the source type.