Function pprint::doc::if_break

source ·
pub fn if_break<'a>(doc: Doc<'a>, other: Doc<'a>) -> Doc<'a>
Expand description

If the first document fits the page, print it, otherwise print the second document.