Skip to main content

text

Function text 

pub fn text(s: impl ToString) -> Document
Expand description

Display the given string exactly.

Like display, this function expects the string does not contain any newlines. Violating this expectation may produce incorrect output.