pub struct Style { /* private fields */ }
Expand description
Styles a text with ANSI styles. This styling is self contained which means that at the end of the string a reset code is issued. Examples:
use clt::{Style, Red};
let mut text = String::new();
text.push_str("hello");
let mut text_styled = Style::new(text);
text_styled.fg(Red);
println!("{}", text_styled);
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more