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
sourceimpl PartialEq<Style> for Style
impl PartialEq<Style> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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