pub struct StructureElement {
pub structure_type: String,
pub bbox: Rect,
pub children: Vec<ContentElement>,
pub reading_order: Option<usize>,
pub alt_text: Option<String>,
pub language: Option<String>,
}Expand description
A structural element for Tagged PDF support.
Represents a node in the PDF structure tree that groups other content elements semantically.
Fields§
§structure_type: StringStructure type (e.g., “P”, “H1”, “Table”, “Figure”)
bbox: RectBounding box encompassing all child elements
children: Vec<ContentElement>Children content elements
reading_order: Option<usize>Reading order index
alt_text: Option<String>Alternate text (for accessibility)
language: Option<String>Language tag (e.g., “en-US”)
Trait Implementations§
Source§impl Clone for StructureElement
impl Clone for StructureElement
Source§impl Debug for StructureElement
impl Debug for StructureElement
Auto Trait Implementations§
impl Freeze for StructureElement
impl RefUnwindSafe for StructureElement
impl Send for StructureElement
impl Sync for StructureElement
impl Unpin for StructureElement
impl UnsafeUnpin for StructureElement
impl UnwindSafe for StructureElement
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