pub struct PageDict {
pub dict: Dict,
pub reference: Option<ObjRef>,
}Expand description
One page’s dictionary, with the attributes it inherits already resolved.
Fields§
§dict: DictThe page’s own dictionary.
reference: Option<ObjRef>The reference it was reached through, when it had one. A page written
inline in its parent’s /Kids has none.
Implementations§
Source§impl PageDict
impl PageDict
Sourcepub fn inherited(&self, key: &Name, r: &impl Resolve) -> Option<Object>
pub fn inherited(&self, key: &Name, r: &impl Resolve) -> Option<Object>
An attribute of this page, looked up through its /Parent chain
(ISO 32000-1 §7.7.3.4).
/Resources, /MediaBox, /CropBox and /Rotate are inheritable:
a page that does not state one takes its parent’s, or its
grandparent’s. The walk stops at the first node that states the key
directly — a value that is itself a reference is resolved, but a
/Parent that is not a dictionary ends the chain.
Trait Implementations§
impl StructuralPartialEq for PageDict
Auto Trait Implementations§
impl Freeze for PageDict
impl RefUnwindSafe for PageDict
impl Send for PageDict
impl Sync for PageDict
impl Unpin for PageDict
impl UnsafeUnpin for PageDict
impl UnwindSafe for PageDict
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