Function typeset::line

source ·
pub fn line(left: Box<Layout>, right: Box<Layout>) -> Box<Layout>
Expand description

Constructs a new Line layout.

Line layouts compose two layouts, ensuring that there is a newline between them.

Examples

use typeset::{text, line};

let layout = line(text("foo"), text("bar"));