pub struct LayoutDom {
pub pages: Vec<LayoutPage>,
}Expand description
The output of the layout engine: positioned rectangles on pages.
Fields§
§pages: Vec<LayoutPage>Laid out pages.
Implementations§
Source§impl LayoutDom
impl LayoutDom
Sourcepub fn estimated_heap_bytes(&self) -> usize
pub fn estimated_heap_bytes(&self) -> usize
Estimate the total heap bytes consumed by this layout tree.
Walks every page and every node recursively, summing the heap
contributions of Vec fields (children, display_items, save_items)
and inline String fields (name, content strings). The estimate is
a lower bound — it does not account for Vec capacity overheads or
internal allocator padding.
Primary use: memory-usage regression tests and profiling dashboards.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LayoutDom
impl RefUnwindSafe for LayoutDom
impl Send for LayoutDom
impl Sync for LayoutDom
impl Unpin for LayoutDom
impl UnsafeUnpin for LayoutDom
impl UnwindSafe for LayoutDom
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