pub struct ParentTree {
pub page_mappings: HashMap<u32, HashMap<u32, ParentTreeEntry>>,
}Expand description
Parent tree that maps marked content IDs to structure elements.
According to PDF spec Section 14.7.4.4, the parent tree is a number tree that maps MCID values to the structure elements that own them.
Fields§
§page_mappings: HashMap<u32, HashMap<u32, ParentTreeEntry>>Mapping from page number to MCID mappings for that page
Implementations§
Source§impl ParentTree
impl ParentTree
Sourcepub fn get_parent(&self, page: u32, mcid: u32) -> Option<&ParentTreeEntry>
pub fn get_parent(&self, page: u32, mcid: u32) -> Option<&ParentTreeEntry>
Get the structure element that owns the given MCID on the given page
Trait Implementations§
Source§impl Clone for ParentTree
impl Clone for ParentTree
Source§impl Debug for ParentTree
impl Debug for ParentTree
Auto Trait Implementations§
impl Freeze for ParentTree
impl RefUnwindSafe for ParentTree
impl Send for ParentTree
impl Sync for ParentTree
impl Unpin for ParentTree
impl UnsafeUnpin for ParentTree
impl UnwindSafe for ParentTree
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