pub struct HOCRBorrowed<'input> {
pub document: &'input Document<'input>,
pub system: &'input str,
pub capabilities: Vec<&'input str>,
pub number_of_pages: Option<u32>,
pub langs: Option<Vec<&'input str>>,
pub scripts: Option<Vec<&'input str>>,
pub elements: Vec<ElementBorrowed<'input>>,
}
Expand description
Represents a hOCR file, borrowing its contents from the XML string.
Fields§
§document: &'input Document<'input>
§system: &'input str
§capabilities: Vec<&'input str>
§number_of_pages: Option<u32>
§langs: Option<Vec<&'input str>>
§scripts: Option<Vec<&'input str>>
§elements: Vec<ElementBorrowed<'input>>
Implementations§
Source§impl<'a> HOCRBorrowed<'a>
impl<'a> HOCRBorrowed<'a>
Source§impl<'input> HOCRBorrowed<'input>
impl<'input> HOCRBorrowed<'input>
Sourcepub fn new_from_document(document: &'input Document<'input>) -> Result<Self>
pub fn new_from_document(document: &'input Document<'input>) -> Result<Self>
Create a new HOCRBorrowed
instance from a roxmltree::Document
.
Trait Implementations§
Source§impl<'input> Clone for HOCRBorrowed<'input>
impl<'input> Clone for HOCRBorrowed<'input>
Source§fn clone(&self) -> HOCRBorrowed<'input>
fn clone(&self) -> HOCRBorrowed<'input>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<'input> Freeze for HOCRBorrowed<'input>
impl<'input> RefUnwindSafe for HOCRBorrowed<'input>
impl<'input> Send for HOCRBorrowed<'input>
impl<'input> Sync for HOCRBorrowed<'input>
impl<'input> Unpin for HOCRBorrowed<'input>
impl<'input> UnwindSafe for HOCRBorrowed<'input>
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