pub enum Kid {
Invalid,
Element {
dict: Dict,
reference: Option<ObjRef>,
slot: usize,
linked: Option<usize>,
},
PageContent {
content_id: i64,
},
StreamContent {
stream_obj_num: u32,
content_id: i64,
},
Object {
obj_num: u32,
},
}Expand description
One entry in a structure element’s kid list.
A slot is always reserved, even when nothing usable sits in it, because the dump walks kid indices and a missing kid contributes a skipped index rather than shifting its siblings.
Variants§
Invalid
Nothing usable: absent, the wrong type, or content belonging to a different page.
Element
A nested structure element, identified by where it was found.
Two indices live here and they are different spaces: slot is the
position in the parent’s /K array and never changes, while linked
is an index into the tree’s element table and is filled only once the
upward walk actually reaches that element. A kid the walk never
reached keeps linked: None and the dump skips it.
Fields
PageContent
Marked content in the page’s own content stream.
StreamContent
Marked content in a stream other than the page’s.
Fields
Object
A reference to a page object rather than to content.