pub struct TreeItem {
pub parent: Option<usize>,
pub children: Vec<usize>,
pub layer: Option<ContentLayer>,
pub kind: TreeKind,
pub prov: Option<TreeProv>,
pub comments: Vec<usize>,
pub deleted: bool,
}Expand description
One item of an ItemTree.
Fields§
§parent: Option<usize>The parent item’s index; None = the document body.
children: Vec<usize>Child item indices, in docling’s children order.
layer: Option<ContentLayer>The content layer; None = body.
kind: TreeKind§prov: Option<TreeProv>The item’s prov entry, when the backend has page geometry for it
(None → prov: [], what the HTML and DOCX backends write).
comments: Vec<usize>docling’s DocItem.comments: the comment_section groups (or note
text items) annotating this item, as item indices — written after
prov when non-empty.
deleted: boolRemoved by ItemTree::delete (docling’s delete_items): the slot
stays so every other index keeps its meaning, but the item is not
numbered or written.
Trait Implementations§
impl StructuralPartialEq for TreeItem
Auto Trait Implementations§
impl Freeze for TreeItem
impl RefUnwindSafe for TreeItem
impl Send for TreeItem
impl Sync for TreeItem
impl Unpin for TreeItem
impl UnsafeUnpin for TreeItem
impl UnwindSafe for TreeItem
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