Struct better_term::Style
source · pub struct Style { /* private fields */ }
Expand description
A way to style output, by setting flags within this struct and then outputting it with (“… {} …”, style)
§Example
use better_term::Style;
// prints out Hello world! underlined and bold
let style = Style::default().underline().bold();
println!("{}Hello, world!", style);
Implementations§
Trait Implementations§
source§impl PartialEq for Style
impl PartialEq for Style
impl Copy for Style
impl StructuralPartialEq for Style
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more