pub enum FormatError {
NotOfd,
MissingRoot,
MissingPathData,
UnsupportedVersion(String),
DanglingReference {
kind: &'static str,
id: String,
},
CircularReference {
chain: String,
},
PageOutOfRange {
index: usize,
total: usize,
},
MissingSignatures,
MaxDepthExceeded(usize),
}Expand description
Specification conformance errors.
Variants§
NotOfd
Not a valid OFD file; the entry point is absent.
MissingRoot
The document declares no root path to its own XML.
MissingPathData
A path object carries no drawing commands.
UnsupportedVersion(String)
Document version is not supported.
DanglingReference
A referenced object or resource does not exist.
CircularReference
References form a cycle.
PageOutOfRange
Requested page does not exist.
MissingSignatures
The document declares no signature list at all.
MaxDepthExceeded(usize)
Recursion went deeper than allowed.
Trait Implementations§
Source§impl Debug for FormatError
impl Debug for FormatError
Source§impl Display for FormatError
impl Display for FormatError
Source§impl Error for FormatError
impl Error for FormatError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<FormatError> for OfdError
impl From<FormatError> for OfdError
Source§fn from(source: FormatError) -> Self
fn from(source: FormatError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FormatError
impl RefUnwindSafe for FormatError
impl Send for FormatError
impl Sync for FormatError
impl Unpin for FormatError
impl UnsafeUnpin for FormatError
impl UnwindSafe for FormatError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more