Function typeset::text

source ·
pub fn text(data: String) -> Box<Layout>
Expand description

Constructs a new Text layout.

Text layouts are literals and basic elements of layout compositions.

Examples

use typeset::text;

let layout = text("foobar");