Module text_style::genpdf[][src]

Expand description

Conversion methods for genpdf’s text style types.

Requires the genpdf feature.

This module implements these conversions:

Example

Adding a string to a paragraph:

let text = text_style::StyledStr::plain("test").bold();
let p = genpdf::elements::Paragraph::new(text);