pub fn comp(
left: Box<Layout>,
right: Box<Layout>,
pad: bool,
fix: bool
) -> Box<Layout>Expand description
Constructs a new Comp layout.
Comp layouts compose two layouts, either as padded (with whitespace between them) or fixed (the composition can not be broken into a newline) or both.
Examples
use typeset::{text, comp};
let layout = comp(text("foo"), text("bar"), false, false);