pub struct TreeProv {
pub page_no: usize,
pub bbox: [f64; 4],
pub bottom_left: bool,
pub charspan: [usize; 2],
}Expand description
docling’s ProvenanceItem for a tree item, written verbatim: the
backend’s own geometry in the page’s units — a PPTX shape’s EMU box,
whose pages entry is the slide size in EMU — rather than the 0–511
DocLang grid the flat Node::Located carries
(which cannot round-trip those integers).
Fields§
§page_no: usize1-based page (slide) number.
bbox: [f64; 4][l, t, r, b], exactly as docling computed them.
bottom_left: booldocling’s coord_origin tag. MsPowerpointDocumentBackend builds a
shape’s box with BoundingBox.from_tuple(…, BOTTOMLEFT) — which reads
the tuple as (l, b, r, t), so the shape’s top EMU lands in b — a
quirk the JSON keeps; a speaker note’s zero box is TOPLEFT
(BoundingBox’s default).
charspan: [usize; 2][0, len(text)] in characters for a text item, [0, 0] for a table
or picture.
Trait Implementations§
impl StructuralPartialEq for TreeProv
Auto Trait Implementations§
impl Freeze for TreeProv
impl RefUnwindSafe for TreeProv
impl Send for TreeProv
impl Sync for TreeProv
impl Unpin for TreeProv
impl UnsafeUnpin for TreeProv
impl UnwindSafe for TreeProv
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