StyleBuilder

Struct StyleBuilder 

Source
pub struct StyleBuilder { /* private fields */ }

Implementations§

Source§

impl StyleBuilder

Source

pub fn build(self) -> String

Source

pub fn bold(self) -> Self

Makes the text bold.
Remember that applying a color overwrites the previous one.

Source

pub fn faint(self) -> Self


*Remember that applying a color overwrites the previous one.*
Source

pub fn italics(self) -> Self

Makes the text cursive.
Remember that applying a color overwrites the previous one.

Source

pub fn underlined(self) -> Self

Adds a line under the text.
Remember that applying a color overwrites the previous one.

Source

pub fn double_underlined(self) -> Self


*Remember that applying a color overwrites the previous one.*

*Remember that applying a color overwrites the previous one.*

*Remember that applying a color overwrites the previous one.*
Source

pub fn inverted(self) -> Self


*Remember that applying a color overwrites the previous one.*
Source

pub fn invisible(self) -> Self

Make the text invisible
Remember that applying a color overwrites the previous one.

Source

pub fn striked(self) -> Self

Adds a line through the text.
Remember that applying a color overwrites the previous one.

Source

pub fn overlined(self) -> Self


*Remember that applying a color overwrites the previous one.*
Source

pub fn black(self) -> Self

Makes the text black.
Remember that applying a color overwrites the previous one.

Source

pub fn red(self) -> Self

Makes the text red.
Remember that applying a color overwrites the previous one.

Source

pub fn green(self) -> Self

Makes the text green.
Remember that applying a color overwrites the previous one.

Source

pub fn yellow(self) -> Self

Makes the text yellow.
Remember that applying a color overwrites the previous one.

Source

pub fn blue(self) -> Self

Makes the text blue.
Remember that applying a color overwrites the previous one.

Source

pub fn magenta(self) -> Self

Makes the text magenta.
Remember that applying a color overwrites the previous one.

Source

pub fn cyan(self) -> Self

Makes the text cyan.
Remember that applying a color overwrites the previous one.

Source

pub fn white(self) -> Self

Makes the text white.
Remember that applying a color overwrites the previous one.

Source

pub fn bright_black(self) -> Self

Makes the text bright black.
Remember that applying a color overwrites the previous one.

Source

pub fn bright_red(self) -> Self

Makes the text bright red.
Remember that applying a color overwrites the previous one.

Source

pub fn bright_green(self) -> Self

Makes the text bright green.
Remember that applying a color overwrites the previous one.

Source

pub fn bright_yellow(self) -> Self

Makes the text bright yellow.
Remember that applying a color overwrites the previous one.

Source

pub fn bright_blue(self) -> Self

Makes the text bright blue.
Remember that applying a color overwrites the previous one.

Source

pub fn bright_magenta(self) -> Self

Makes the text bright magenta.
Remember that applying a color overwrites the previous one.

Source

pub fn bright_cyan(self) -> Self

Makes the text bright cyan.
Remember that applying a color overwrites the previous one.

Source

pub fn bright_white(self) -> Self

Makes the text bright white.
Remember that applying a color overwrites the previous one.

Source

pub fn black_bg(self) -> Self

Makes the background black.
Remember that applying a color overwrites the previous one.

Source

pub fn red_bg(self) -> Self

Makes the background red.
Remember that applying a color overwrites the previous one.

Source

pub fn green_bg(self) -> Self

Makes the background green.
Remember that applying a color overwrites the previous one.

Source

pub fn yellow_bg(self) -> Self

Makes the background yellow.
Remember that applying a color overwrites the previous one.

Source

pub fn blue_bg(self) -> Self

Makes the background blue.
Remember that applying a color overwrites the previous one.

Source

pub fn magenta_bg(self) -> Self

Makes the background magenta.
Remember that applying a color overwrites the previous one.

Source

pub fn cyan_bg(self) -> Self

Makes the background cyan.
Remember that applying a color overwrites the previous one.

Source

pub fn white_bg(self) -> Self

Makes the background white.
Remember that applying a color overwrites the previous one.

Source

pub fn bright_black_bg(self) -> Self

Makes the background bright black.
Remember that applying a color overwrites the previous one.

Source

pub fn bright_red_bg(self) -> Self

Makes the background bright red.
Remember that applying a color overwrites the previous one.

Source

pub fn bright_green_bg(self) -> Self

Makes the background bright green.
Remember that applying a color overwrites the previous one.

Source

pub fn bright_yellow_bg(self) -> Self

Makes the background bright yellow.
Remember that applying a color overwrites the previous one.

Source

pub fn bright_blue_bg(self) -> Self

Makes the background bright blue.
Remember that applying a color overwrites the previous one.

Source

pub fn bright_magenta_bg(self) -> Self

Makes the background bright magenta.
Remember that applying a color overwrites the previous one.

Source

pub fn bright_cyan_bg(self) -> Self

Makes the background bright cyan.
Remember that applying a color overwrites the previous one.

Source

pub fn bright_white_bg(self) -> Self

Makes the background bright white.
Remember that applying a color overwrites the previous one.

Source

pub fn orange(self) -> Self

Makes the text orange.
Remember that applying a color overwrites the previous one.

Source

pub fn orange_bg(self) -> Self

Makes the background orange.
Remember that applying a color overwrites the previous one.

Source

pub fn blueberry(self) -> Self

Makes the text blueberry.
Remember that applying a color overwrites the previous one.

Source

pub fn blueberry_bg(self) -> Self

Makes the background blueberry.
Remember that applying a color overwrites the previous one.

Source

pub fn pink(self) -> Self

Makes the text pink.
Remember that applying a color overwrites the previous one.

Source

pub fn pink_bg(self) -> Self

Makes the background pink.
Remember that applying a color overwrites the previous one.

Source

pub fn rgb(self, Rgb: Rgb) -> Self

Source

pub fn rgb_bg(self, Rgb: Rgb) -> Self

Trait Implementations§

Source§

impl Debug for StyleBuilder

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.