pub struct Error { /* private fields */ }
Custom error type for PDF parsing operations.
Converts an error kind to an Error instance.
kind
An Error instance with the kind’s code and message
Converts a standard IO error to a custom Error instance.
e
A custom Error instance with STD_IO_ERROR kind
Converts a UTF-8 conversion error to a custom Error instance.
A custom Error instance with INVALID_UTF8_STR kind
Converts a float parsing error to a custom Error instance.
A custom Error instance with FLOAT_PARSE_ERROR kind
Converts an integer parsing error to a custom Error instance.
A custom Error instance with INT_PARSE_ERROR kind
TypeId
self
Returns the argument unchanged.
Calls U::from(self).
U::from(self)
That is, this conversion is whatever the implementation of From<T> for U chooses to do.
From<T> for U