Pointer currently has an Option<Box<MalformedPointerError>> field for situations where an error occurs during deserialization. This convolutes the API but does allow for deserialization to succeed even if the pointer is malformed. However, any attempt to use the pointer from that point forward returns an error.
An enum like this could be added to account for possibly malformed data:
Pointer
currently has anOption<Box<MalformedPointerError>>
field for situations where an error occurs during deserialization. This convolutes the API but does allow for deserialization to succeed even if the pointer is malformed. However, any attempt to use the pointer from that point forward returns an error.An
enum
like this could be added to account for possibly malformed data: