[][src]Module text_style::cursive

Conversion methods for cursive’s text style types.

Requires the cursive feature.

This module implements these conversions:

Example

Rendering a string:

let text = text_style::StyledStr::plain("test").bold();
let mut s = cursive::dummy();
s.add_layer(cursive::views::TextView::new(text));
s.add_global_callback('q', |s| s.quit());
s.run();