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. The office backends tag their
top-left-based boxes TOPLEFT (the PPTX backend since docling#4294 —
it used to tag them BOTTOMLEFT, which read the tuple as (l, b, r, t) and swapped the vertical edges); a backend that really works in a
bottom-left space sets this.
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