pub struct linebreak_style { /* private fields */ }Methods from Deref<Target = Style>§
Sourcepub fn bold(&self) -> Style
pub fn bold(&self) -> Style
Returns a Style with the bold property set.
§Examples
use ansi_term::Style;
let style = Style::new().bold();
println!("{}", style.paint("hey"));Sourcepub fn dimmed(&self) -> Style
pub fn dimmed(&self) -> Style
Returns a Style with the dimmed property set.
§Examples
use ansi_term::Style;
let style = Style::new().dimmed();
println!("{}", style.paint("sup"));Sourcepub fn italic(&self) -> Style
pub fn italic(&self) -> Style
Returns a Style with the italic property set.
§Examples
use ansi_term::Style;
let style = Style::new().italic();
println!("{}", style.paint("greetings"));Sourcepub fn underline(&self) -> Style
pub fn underline(&self) -> Style
Returns a Style with the underline property set.
§Examples
use ansi_term::Style;
let style = Style::new().underline();
println!("{}", style.paint("salutations"));Sourcepub fn blink(&self) -> Style
pub fn blink(&self) -> Style
Returns a Style with the blink property set.
§Examples
use ansi_term::Style;
let style = Style::new().blink();
println!("{}", style.paint("wazzup"));Sourcepub fn reverse(&self) -> Style
pub fn reverse(&self) -> Style
Returns a Style with the reverse property set.
§Examples
use ansi_term::Style;
let style = Style::new().reverse();
println!("{}", style.paint("aloha"));Returns a Style with the hidden property set.
§Examples
use ansi_term::Style;
let style = Style::new().hidden();
println!("{}", style.paint("ahoy"));Sourcepub fn strikethrough(&self) -> Style
pub fn strikethrough(&self) -> Style
Returns a Style with the strikethrough property set.
§Examples
use ansi_term::Style;
let style = Style::new().strikethrough();
println!("{}", style.paint("yo"));Trait Implementations§
Source§impl Deref for linebreak_style
impl Deref for linebreak_style
impl LazyStatic for linebreak_style
Auto Trait Implementations§
impl Freeze for linebreak_style
impl RefUnwindSafe for linebreak_style
impl Send for linebreak_style
impl Sync for linebreak_style
impl Unpin for linebreak_style
impl UnwindSafe for linebreak_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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more