Skip to main content

text

Function text 

Source
fn text(y: &Yaml) -> String
Expand description

One value on one line.

Nested values are rendered inline rather than summarised as [2 items]: an array attribute, a kvlist attribute and a structured body are decoded by the engine at some cost, and the detail pane is the one place the reader asked to see them. Row clips the line at the pane width, so this only has to be compact, not fitted.

ponytail: the whole value is built and then clipped, so a thousand-element array costs a string nobody sees, once per frame. Depth is capped because nesting is what makes that unbounded; cap the element count too if a payload that wide ever turns up.