Function typeset::seq

source ·
pub fn seq(layout: Box<Layout>) -> Box<Layout>
Expand description

Constructs a new Seq layout.

Seq layouts are modal layouts that will ensure that all compositions under them will be broken into newlines during rendering, if any one of the compositions are broken.

Examples

use typeset::{text, comp, seq};

let layout = grp(comp(text("foo"), text("bar"), false, false));