pub struct ParsedPdfElement {
pub element_type: ParsedElementType,
pub text: String,
pub hierarchy_level: u32,
pub position: usize,
pub style_info: FontClass,
pub placement: Option<Placement>,
pub reading_order: u32,
pub bookmark_match: Option<BookmarkSection>,
pub token_count: usize,
}Fields§
§element_type: ParsedElementType§text: String§hierarchy_level: u32§position: usize§style_info: FontClass§placement: Option<Placement>§reading_order: u32§bookmark_match: Option<BookmarkSection>§token_count: usizeImplementations§
Source§impl ParsedPdfElement
impl ParsedPdfElement
Sourcepub fn pdf_placement(&self) -> &Placement
pub fn pdf_placement(&self) -> &Placement
Return the placement for PDF-sourced elements. Panics with a clear message if called on a non-PDF element (placement is None).
Trait Implementations§
Source§impl Clone for ParsedPdfElement
impl Clone for ParsedPdfElement
Source§fn clone(&self) -> ParsedPdfElement
fn clone(&self) -> ParsedPdfElement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ParsedPdfElement
impl Debug for ParsedPdfElement
Source§impl<'de> Deserialize<'de> for ParsedPdfElement
impl<'de> Deserialize<'de> for ParsedPdfElement
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ParsedPdfElement, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ParsedPdfElement, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ParsedPdfElement
impl Serialize for ParsedPdfElement
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ParsedPdfElement
impl RefUnwindSafe for ParsedPdfElement
impl Send for ParsedPdfElement
impl Sync for ParsedPdfElement
impl Unpin for ParsedPdfElement
impl UnsafeUnpin for ParsedPdfElement
impl UnwindSafe for ParsedPdfElement
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