pub fn compile(layout: Box<Layout>) -> Box<Doc>Expand description
A function for compiling layouts into documents optimized for rendering, takes a Box<Layout> and gives a Box<Doc>.
Examples
use typeset::{text, comp, compile};
let layout = comp(text("foo"), text("bar"), false, false);
let document = compile(layout);