pub enum StructRole {
Show 15 variants
Document,
Heading(u8),
Paragraph,
Figure,
Table,
TableRow,
TableHeaderCell,
TableCell,
List,
ListItem,
ListItemLabel,
ListItemBody,
Toc,
TocItem,
Artifact,
}Expand description
The PDF standard structure types (ISO 32000-1 14.8.4, Table 333/334)
this crate tags content with — no RoleMap needed since all of these
are standard types. Grouping roles (see StructRole::is_grouping)
nest child StructElems and own no marked content of their own;
Artifact is excluded from the structure tree entirely (watermarks,
running headers/footers — PDF/UA pagination artifacts, not content).
Variants§
Document
Heading(u8)
Text::outline_level 1-6, clamped (.outline_level(7+) still
produces valid output, just tagged as the deepest standard
heading level rather than inventing a 7th).
Paragraph
Figure
Table
TableRow
TableHeaderCell
TableCell
List
ListItem
ListItemLabel
ListItemBody
Toc
TocItem
Artifact
Not structure content at all — BDC/EMC with no MCID, entirely
excluded from /StructTreeRoot (ISO 32000-1 14.8.2.2).
Implementations§
Source§impl StructRole
impl StructRole
Trait Implementations§
Source§impl Clone for StructRole
impl Clone for StructRole
Source§fn clone(&self) -> StructRole
fn clone(&self) -> StructRole
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 StructRole
Source§impl Debug for StructRole
impl Debug for StructRole
impl Eq for StructRole
Source§impl PartialEq for StructRole
impl PartialEq for StructRole
impl StructuralPartialEq for StructRole
Auto Trait Implementations§
impl Freeze for StructRole
impl RefUnwindSafe for StructRole
impl Send for StructRole
impl Sync for StructRole
impl Unpin for StructRole
impl UnsafeUnpin for StructRole
impl UnwindSafe for StructRole
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