pub struct InlineBudget {
pub rows: usize,
pub depth: usize,
}Expand description
How much of a container’s subtree may be inlined into its parent’s page rather than drilled into — the knob that slides the page projection between its two ancestors.
At the default, a page is a settings menu: small all-scalar groups inline, everything substantial earns a page. Raised far enough, the root page simply is the whole document — the settings-list rendering, absorbed — and a small document never asks for a navigation step at all. The embedder picks, because the right answer is about the room the pages are drawn in, not about the document.
Fields§
§rows: usizeThe most rows an inlined subtree may contribute to the page. Every descendant is a row — nested containers add their headers too — so this is the honest cost of saying yes.
depth: usizeThe most ranks of nesting an inlined subtree may reach: 1 admits only
all-scalar groups, 2 lets those groups hold one more rank of groups, and
so on. Rendered as PageItem::inset, so this bounds the indentation a
page can ask a frontend to draw.
Trait Implementations§
Source§impl Clone for InlineBudget
impl Clone for InlineBudget
Source§fn clone(&self) -> InlineBudget
fn clone(&self) -> InlineBudget
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for InlineBudget
Source§impl Debug for InlineBudget
impl Debug for InlineBudget
Source§impl Default for InlineBudget
impl Default for InlineBudget
Source§fn default() -> Self
fn default() -> Self
The founding rule: at most INLINE_MAX members, all of them scalars.