[−][src]Module text_style::cursive
Conversion methods for cursive
’s text style types.
Requires the cursive
feature.
This module implements these conversions:
AnsiColor
tocursive::theme::BaseColor
Color
tocursive::theme::Color
Effect
tocursive::theme::Effect
Style
tocursive::theme::Style
StyledStr
andStyledString
tocursive::utils::markup::StyledString
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();