pub enum LayoutClass {
Show 25 variants
Abstract = 0,
Algorithm = 1,
AsideText = 2,
Chart = 3,
Content = 4,
DisplayFormula = 5,
DocTitle = 6,
FigureTitle = 7,
Footer = 8,
FooterImage = 9,
Footnote = 10,
FormulaNumber = 11,
Header = 12,
HeaderImage = 13,
Image = 14,
InlineFormula = 15,
Number = 16,
ParagraphTitle = 17,
Reference = 18,
ReferenceContent = 19,
Seal = 20,
Table = 21,
Text = 22,
VerticalText = 23,
VisionFootnote = 24,
}Expand description
25 classi di PP-DocLayoutV3 (config.json del rilascio PaddleX). Mappate 1:1 dalle output predictions del modello.
Variants§
Abstract = 0
Algorithm = 1
AsideText = 2
Chart = 3
Content = 4
DisplayFormula = 5
DocTitle = 6
FigureTitle = 7
Footnote = 10
FormulaNumber = 11
Header = 12
HeaderImage = 13
Image = 14
InlineFormula = 15
Number = 16
ParagraphTitle = 17
Reference = 18
ReferenceContent = 19
Seal = 20
Table = 21
Text = 22
VerticalText = 23
VisionFootnote = 24
Implementations§
Source§impl LayoutClass
impl LayoutClass
pub fn from_id(id: usize) -> Option<Self>
Sourcepub fn semantic(self) -> SemanticClass
pub fn semantic(self) -> SemanticClass
Mapping a categoria semantica semplificata coerente col Python
(CLASS_MAPPING in analyzer.py). 8 categorie: text/title/list/
figure/table/header/footer/equation. Usata downstream per markdown
export / consumer agnostic-rendering.
Trait Implementations§
Source§impl Clone for LayoutClass
impl Clone for LayoutClass
Source§fn clone(&self) -> LayoutClass
fn clone(&self) -> LayoutClass
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 moreimpl Copy for LayoutClass
Source§impl Debug for LayoutClass
impl Debug for LayoutClass
Source§impl<'de> Deserialize<'de> for LayoutClass
impl<'de> Deserialize<'de> for LayoutClass
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
impl Eq for LayoutClass
Source§impl PartialEq for LayoutClass
impl PartialEq for LayoutClass
Source§fn eq(&self, other: &LayoutClass) -> bool
fn eq(&self, other: &LayoutClass) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LayoutClass
impl Serialize for LayoutClass
impl StructuralPartialEq for LayoutClass
Auto Trait Implementations§
impl Freeze for LayoutClass
impl RefUnwindSafe for LayoutClass
impl Send for LayoutClass
impl Sync for LayoutClass
impl Unpin for LayoutClass
impl UnsafeUnpin for LayoutClass
impl UnwindSafe for LayoutClass
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.