pub enum StandardStructureType {
Show 49 variants
Document,
Part,
Sect,
Div,
Art,
BlockQuote,
Caption,
TOC,
TOCI,
Index,
P,
H,
H1,
H2,
H3,
H4,
H5,
H6,
L,
LI,
Lbl,
LBody,
Table,
TR,
TH,
TD,
THead,
TBody,
TFoot,
Span,
Quote,
Note,
Reference,
BibEntry,
Code,
Link,
Annot,
Figure,
Formula,
Form,
Ruby,
RB,
RT,
RP,
Warichu,
WT,
WP,
NonStruct,
Private,
}Expand description
Standard structure types defined in ISO 32000-1 Table 337
Variants§
Document
Document root element
Part
Part of a document
Sect
Section (generic division)
Div
Generic block-level division
Art
Article
BlockQuote
Block quotation
Caption
Caption (for figures, tables, etc.)
TOC
Table of contents
TOCI
Table of contents item
Index
Index
P
Generic paragraph
H
Generic heading (when level unknown)
H1
Heading level 1
H2
Heading level 2
H3
Heading level 3
H4
Heading level 4
H5
Heading level 5
H6
Heading level 6
L
List
LI
List item
Lbl
Label for list item (bullet or number)
LBody
List item body
Table
Table
TR
Table row
TH
Table header cell
TD
Table data cell
THead
Table header row group
TBody
Table body row group
TFoot
Table footer row group
Span
Generic inline span
Quote
Quotation
Note
Note or footnote
Reference
Reference to external content
BibEntry
Bibliographic entry
Code
Computer code
Link
Hyperlink
Annot
Annotation reference
Figure
Figure or illustration
Formula
Mathematical formula
Form
Interactive form element
Ruby
Ruby annotation (Asian text)
RB
Ruby base text
RT
Ruby text
RP
Ruby punctuation
Warichu
Warichu annotation
WT
Warichu text
WP
Warichu punctuation
NonStruct
Non-structural element (decorative content)
Private
Private element (application-specific)
Implementations§
Source§impl StandardStructureType
impl StandardStructureType
Sourcepub fn as_pdf_name(&self) -> &'static str
pub fn as_pdf_name(&self) -> &'static str
Returns the PDF name for this structure type
Sourcepub fn from_pdf_name(name: &str) -> Option<Self>
pub fn from_pdf_name(name: &str) -> Option<Self>
Parses a PDF name into a standard structure type
Trait Implementations§
Source§impl Clone for StandardStructureType
impl Clone for StandardStructureType
Source§fn clone(&self) -> StandardStructureType
fn clone(&self) -> StandardStructureType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StandardStructureType
impl Debug for StandardStructureType
Source§impl Hash for StandardStructureType
impl Hash for StandardStructureType
Source§impl PartialEq for StandardStructureType
impl PartialEq for StandardStructureType
impl Eq for StandardStructureType
impl StructuralPartialEq for StandardStructureType
Auto Trait Implementations§
impl Freeze for StandardStructureType
impl RefUnwindSafe for StandardStructureType
impl Send for StandardStructureType
impl Sync for StandardStructureType
impl Unpin for StandardStructureType
impl UnwindSafe for StandardStructureType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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