pub enum HOCRParserError {
UnknownElement(TextPos),
UnknownProperty(TextPos),
NodeIsNotElement(TextPos),
NoHeadElement,
NoBodyElement,
NoOCRSystem,
NoOCRCapabilities,
XMLParseError(Error),
}
Expand description
hOCR parsing error variants.
Variants§
UnknownElement(TextPos)
Unknown hOCR element.
UnknownProperty(TextPos)
Unknown hOCR property.
NodeIsNotElement(TextPos)
Cannot construct hOCR element from node: it is not of type Element.
NoHeadElement
No <head>
element found in hOCR file.
NoBodyElement
No <body>
element found in hOCR file.
NoOCRSystem
No OCR system found in hOCR file metadata.
NoOCRCapabilities
No OCR capabilities found in hOCR file metadata.
XMLParseError(Error)
XML parse error.
Trait Implementations§
Source§impl Clone for HOCRParserError
impl Clone for HOCRParserError
Source§fn clone(&self) -> HOCRParserError
fn clone(&self) -> HOCRParserError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HOCRParserError
impl Debug for HOCRParserError
Source§impl Display for HOCRParserError
impl Display for HOCRParserError
Source§impl Error for HOCRParserError
impl Error for HOCRParserError
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()
Auto Trait Implementations§
impl Freeze for HOCRParserError
impl RefUnwindSafe for HOCRParserError
impl Send for HOCRParserError
impl Sync for HOCRParserError
impl Unpin for HOCRParserError
impl UnwindSafe for HOCRParserError
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