pub type ParseFn = for<'mem> unsafe fn(_: &str, _: PtrUninit<'mem>) -> Result<PtrMut<'mem>, ParseError>;Expand description
Function to parse a value from a string.
If both DisplayFn and ParseFn are set, we should be able to round-trip the value.
ยงSafety
The target parameter has the correct layout and alignment, but points to
uninitialized memory. If this function succeeds, it should return Ok with the
same pointer wrapped in an PtrMut. If parsing fails, it returns Err with an error.