pub fn nest<C: Cost>(n: usize, d: Doc<C>) -> Doc<C>Expand description
Increase the indentation level while rendering a document.
Indentation is only affected after the next newline that is rendered.
Content on the current line will not be indented.
ยงExample
let doc = text("Bulbasaur") &
nest(4, text("Charmander") & nl() & text("Squirtle"));
assert_eq!(r"BulbasaurCharmander
Squirtle", doc.to_string());