SerializeWithFn

Type Alias SerializeWithFn 

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