pub enum ContentElement {
Show 17 variants
TextChunk(TextChunk),
TextLine(TextLine),
TextBlock(TextBlock),
Image(ImageChunk),
Line(LineChunk),
LineArt(LineArtChunk),
TableBorder(TableBorder),
List(PDFList),
Paragraph(SemanticParagraph),
Heading(SemanticHeading),
NumberHeading(SemanticNumberHeading),
Caption(SemanticCaption),
HeaderFooter(SemanticHeaderOrFooter),
Figure(SemanticFigure),
Formula(SemanticFormula),
Picture(SemanticPicture),
Table(SemanticTable),
}Expand description
Unified enum for all content elements on a page.
Variants§
TextChunk(TextChunk)
Raw text chunk
TextLine(TextLine)
Grouped text line
TextBlock(TextBlock)
Grouped text block
Image(ImageChunk)
Image bounding box
Line(LineChunk)
Line segment
LineArt(LineArtChunk)
Vector graphic
TableBorder(TableBorder)
Table border structure
List(PDFList)
List
Paragraph(SemanticParagraph)
Paragraph
Heading(SemanticHeading)
Heading
NumberHeading(SemanticNumberHeading)
Numbered heading
Caption(SemanticCaption)
Caption
Header or footer
Figure(SemanticFigure)
Figure
Formula(SemanticFormula)
Formula
Picture(SemanticPicture)
Picture with description
Table(SemanticTable)
Table (semantic wrapper)
Implementations§
Trait Implementations§
Source§impl Clone for ContentElement
impl Clone for ContentElement
Source§fn clone(&self) -> ContentElement
fn clone(&self) -> ContentElement
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 moreSource§impl Debug for ContentElement
impl Debug for ContentElement
Source§impl<'de> Deserialize<'de> for ContentElement
impl<'de> Deserialize<'de> for ContentElement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ContentElement
impl RefUnwindSafe for ContentElement
impl Send for ContentElement
impl Sync for ContentElement
impl Unpin for ContentElement
impl UnsafeUnpin for ContentElement
impl UnwindSafe for ContentElement
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more