Struct colored::Style [−][src]
pub struct Style(_);
Expand description
A combinatorial style such as bold, italics, dimmed, etc.
Implementations
Check if the current style has one of Styles
switched on.
let colored = "".bold().italic();
assert_eq!(colored.style().contains(Styles::Bold), true);
assert_eq!(colored.style().contains(Styles::Italic), true);
assert_eq!(colored.style().contains(Styles::Dimmed), false);
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Style
impl UnwindSafe for Style
Blanket Implementations
Mutably borrows from an owned value. Read more