#[non_exhaustive]pub struct Nesting {
pub level: u8,
}Expand description
How deep a row sits inside a set: a tree, an outline, a threaded list.
edf33114, decided 2026-08-30 (Max): this crate names the concept and
makeover-webview writes the rule. RowPart below already names what is
in a row; nothing named where a row sits relative to its siblings, so
every consumer that had a hierarchy carried a bare number and every renderer
decided for itself what one was worth.
§Not Depth, and the collision is the reason
Depth is taken and means something else entirely: surface bevel –
Flat, Raised, Well, Sunken, Overlay – a fact about a surface
rather than a position in a hierarchy. Two meanings under one word in one
crate is the collision that costs a reader an hour, and the word this
concept wants is the one that would cause it.
§The magnitude is the renderer’s, and that is the precedent
Awaiting is the shape: this crate names the fact and declines to name
what it is worth. makeover-webview writes the rule as a custom property with
a fallback – the way it writes margin-inline-start: var(--awaiting-gap, 0.5ch) – so a level has one answer per renderer and an app can override
it. A terminal spends columns, a browser spends inline space, and neither
number belongs in a description.
§Zero is a real answer
top is the default and is what a flat list says: every row is
at the top level, which is true and is the reading a renderer needs. An
Option here would make “not nested” and “nested at zero” two spellings of
one thing, the same argument Discovery’s indexable makes about defaults
that are meaningful.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.level: u8How many levels in, counting from zero.
u8 because a hierarchy a reader can follow is not 256 deep, and a
renderer indenting by a level has to multiply it by something – a wider
integer here is a wider integer in every renderer’s arithmetic for a
range nothing will use.