pub struct StyleBuilder { /* private fields */ }Implementations§
Source§impl StyleBuilder
impl StyleBuilder
pub fn build(self) -> String
Sourcepub fn bold(self) -> Self
pub fn bold(self) -> Self
Makes the text bold.
Remember that applying a color overwrites the previous one.
Sourcepub fn italics(self) -> Self
pub fn italics(self) -> Self
Makes the text cursive.
Remember that applying a color overwrites the previous one.
Sourcepub fn underlined(self) -> Self
pub fn underlined(self) -> Self
Adds a line under the text.
Remember that applying a color overwrites the previous one.
Sourcepub fn double_underlined(self) -> Self
pub fn double_underlined(self) -> Self
*Remember that applying a color overwrites the previous one.*
Sourcepub fn slow_blink(self) -> Self
pub fn slow_blink(self) -> Self
*Remember that applying a color overwrites the previous one.*
Sourcepub fn fast_blink(self) -> Self
pub fn fast_blink(self) -> Self
*Remember that applying a color overwrites the previous one.*
Sourcepub fn invisible(self) -> Self
pub fn invisible(self) -> Self
Make the text invisible
Remember that applying a color overwrites the previous one.
Sourcepub fn striked(self) -> Self
pub fn striked(self) -> Self
Adds a line through the text.
Remember that applying a color overwrites the previous one.
Sourcepub fn black(self) -> Self
pub fn black(self) -> Self
Makes the text black.
Remember that applying a color overwrites the previous one.
Sourcepub fn red(self) -> Self
pub fn red(self) -> Self
Makes the text red.
Remember that applying a color overwrites the previous one.
Sourcepub fn green(self) -> Self
pub fn green(self) -> Self
Makes the text green.
Remember that applying a color overwrites the previous one.
Sourcepub fn yellow(self) -> Self
pub fn yellow(self) -> Self
Makes the text yellow.
Remember that applying a color overwrites the previous one.
Sourcepub fn blue(self) -> Self
pub fn blue(self) -> Self
Makes the text blue.
Remember that applying a color overwrites the previous one.
Sourcepub fn magenta(self) -> Self
pub fn magenta(self) -> Self
Makes the text magenta.
Remember that applying a color overwrites the previous one.
Sourcepub fn cyan(self) -> Self
pub fn cyan(self) -> Self
Makes the text cyan.
Remember that applying a color overwrites the previous one.
Sourcepub fn white(self) -> Self
pub fn white(self) -> Self
Makes the text white.
Remember that applying a color overwrites the previous one.
Sourcepub fn bright_black(self) -> Self
pub fn bright_black(self) -> Self
Makes the text bright black.
Remember that applying a color overwrites the previous one.
Sourcepub fn bright_red(self) -> Self
pub fn bright_red(self) -> Self
Makes the text bright red.
Remember that applying a color overwrites the previous one.
Sourcepub fn bright_green(self) -> Self
pub fn bright_green(self) -> Self
Makes the text bright green.
Remember that applying a color overwrites the previous one.
Sourcepub fn bright_yellow(self) -> Self
pub fn bright_yellow(self) -> Self
Makes the text bright yellow.
Remember that applying a color overwrites the previous one.
Sourcepub fn bright_blue(self) -> Self
pub fn bright_blue(self) -> Self
Makes the text bright blue.
Remember that applying a color overwrites the previous one.
Sourcepub fn bright_magenta(self) -> Self
pub fn bright_magenta(self) -> Self
Makes the text bright magenta.
Remember that applying a color overwrites the previous one.
Sourcepub fn bright_cyan(self) -> Self
pub fn bright_cyan(self) -> Self
Makes the text bright cyan.
Remember that applying a color overwrites the previous one.
Sourcepub fn bright_white(self) -> Self
pub fn bright_white(self) -> Self
Makes the text bright white.
Remember that applying a color overwrites the previous one.
Sourcepub fn black_bg(self) -> Self
pub fn black_bg(self) -> Self
Makes the background black.
Remember that applying a color overwrites the previous one.
Sourcepub fn red_bg(self) -> Self
pub fn red_bg(self) -> Self
Makes the background red.
Remember that applying a color overwrites the previous one.
Sourcepub fn green_bg(self) -> Self
pub fn green_bg(self) -> Self
Makes the background green.
Remember that applying a color overwrites the previous one.
Sourcepub fn yellow_bg(self) -> Self
pub fn yellow_bg(self) -> Self
Makes the background yellow.
Remember that applying a color overwrites the previous one.
Sourcepub fn blue_bg(self) -> Self
pub fn blue_bg(self) -> Self
Makes the background blue.
Remember that applying a color overwrites the previous one.
Sourcepub fn magenta_bg(self) -> Self
pub fn magenta_bg(self) -> Self
Makes the background magenta.
Remember that applying a color overwrites the previous one.
Sourcepub fn cyan_bg(self) -> Self
pub fn cyan_bg(self) -> Self
Makes the background cyan.
Remember that applying a color overwrites the previous one.
Sourcepub fn white_bg(self) -> Self
pub fn white_bg(self) -> Self
Makes the background white.
Remember that applying a color overwrites the previous one.
Sourcepub fn bright_black_bg(self) -> Self
pub fn bright_black_bg(self) -> Self
Makes the background bright black.
Remember that applying a color overwrites the previous one.
Sourcepub fn bright_red_bg(self) -> Self
pub fn bright_red_bg(self) -> Self
Makes the background bright red.
Remember that applying a color overwrites the previous one.
Sourcepub fn bright_green_bg(self) -> Self
pub fn bright_green_bg(self) -> Self
Makes the background bright green.
Remember that applying a color overwrites the previous one.
Sourcepub fn bright_yellow_bg(self) -> Self
pub fn bright_yellow_bg(self) -> Self
Makes the background bright yellow.
Remember that applying a color overwrites the previous one.
Sourcepub fn bright_blue_bg(self) -> Self
pub fn bright_blue_bg(self) -> Self
Makes the background bright blue.
Remember that applying a color overwrites the previous one.
Sourcepub fn bright_magenta_bg(self) -> Self
pub fn bright_magenta_bg(self) -> Self
Makes the background bright magenta.
Remember that applying a color overwrites the previous one.
Sourcepub fn bright_cyan_bg(self) -> Self
pub fn bright_cyan_bg(self) -> Self
Makes the background bright cyan.
Remember that applying a color overwrites the previous one.
Sourcepub fn bright_white_bg(self) -> Self
pub fn bright_white_bg(self) -> Self
Makes the background bright white.
Remember that applying a color overwrites the previous one.
Sourcepub fn orange(self) -> Self
pub fn orange(self) -> Self
Makes the text orange.
Remember that applying a color overwrites the previous one.
Sourcepub fn orange_bg(self) -> Self
pub fn orange_bg(self) -> Self
Makes the background orange.
Remember that applying a color overwrites the previous one.
Sourcepub fn blueberry(self) -> Self
pub fn blueberry(self) -> Self
Makes the text blueberry.
Remember that applying a color overwrites the previous one.
Sourcepub fn blueberry_bg(self) -> Self
pub fn blueberry_bg(self) -> Self
Makes the background blueberry.
Remember that applying a color overwrites the previous one.
Sourcepub fn pink(self) -> Self
pub fn pink(self) -> Self
Makes the text pink.
Remember that applying a color overwrites the previous one.
Sourcepub fn pink_bg(self) -> Self
pub fn pink_bg(self) -> Self
Makes the background pink.
Remember that applying a color overwrites the previous one.