pub fn pack(layout: Box<Layout>) -> Box<Layout>Expand description
Constructs a new Pack layout.
Pack layouts are modal layouts that will ensure that indentation will be prefixed to any broken compositions, making sure all the indentations line up with the index of the first character in the pack.
Examples
use typeset::{text, comp, pack};
let layout = pack(comp(text("foo"), text("bar"), false, false));