pub struct BuiltForm(/* private fields */);Expand description
Implementations§
Source§impl BuiltForm
impl BuiltForm
Sourcepub const fn underlined(self) -> Self
pub const fn underlined(self) -> Self
Applies the
underlined
attribute to this Form
Sourcepub const fn double_underlined(self) -> Self
pub const fn double_underlined(self) -> Self
Applies the
double_underlined
attribute to this Form
Sourcepub const fn undercurled(self) -> Self
pub const fn undercurled(self) -> Self
Applies the
undercurled
attribute to this Form
Sourcepub const fn underdashed(self) -> Self
pub const fn underdashed(self) -> Self
Applies the
underdashed
attribute to this Form
Sourcepub const fn crossed_out(self) -> Self
pub const fn crossed_out(self) -> Self
Applies the
crossed_out
attribute to this Form
Sourcepub const fn underline_black(self) -> Self
pub const fn underline_black(self) -> Self
Sourcepub const fn on_dark_grey(self) -> Self
pub const fn on_dark_grey(self) -> Self
Turns the background of this Form
dark_grey
Sourcepub const fn underline_dark_grey(self) -> Self
pub const fn underline_dark_grey(self) -> Self
Sourcepub const fn underline_red(self) -> Self
pub const fn underline_red(self) -> Self
Sourcepub const fn on_dark_red(self) -> Self
pub const fn on_dark_red(self) -> Self
Turns the background of this Form
dark_red
Sourcepub const fn underline_dark_red(self) -> Self
pub const fn underline_dark_red(self) -> Self
Sourcepub const fn underline_green(self) -> Self
pub const fn underline_green(self) -> Self
Sourcepub const fn dark_green(self) -> Self
pub const fn dark_green(self) -> Self
Turns the foreground of this Form
dark_green
Sourcepub const fn on_dark_green(self) -> Self
pub const fn on_dark_green(self) -> Self
Turns the background of this Form
dark_green
Sourcepub const fn underline_dark_green(self) -> Self
pub const fn underline_dark_green(self) -> Self
Sourcepub const fn underline_yellow(self) -> Self
pub const fn underline_yellow(self) -> Self
Sourcepub const fn dark_yellow(self) -> Self
pub const fn dark_yellow(self) -> Self
Turns the foreground of this Form
dark_yellow
Sourcepub const fn on_dark_yellow(self) -> Self
pub const fn on_dark_yellow(self) -> Self
Turns the background of this Form
dark_yellow
Sourcepub const fn underline_dark_yellow(self) -> Self
pub const fn underline_dark_yellow(self) -> Self
Sourcepub const fn underline_blue(self) -> Self
pub const fn underline_blue(self) -> Self
Sourcepub const fn on_dark_blue(self) -> Self
pub const fn on_dark_blue(self) -> Self
Turns the background of this Form
dark_blue
Sourcepub const fn underline_dark_blue(self) -> Self
pub const fn underline_dark_blue(self) -> Self
Sourcepub const fn on_magenta(self) -> Self
pub const fn on_magenta(self) -> Self
Turns the background of this Form
magenta
Sourcepub const fn underline_magenta(self) -> Self
pub const fn underline_magenta(self) -> Self
Sourcepub const fn dark_magenta(self) -> Self
pub const fn dark_magenta(self) -> Self
Turns the foreground of this Form
dark_magenta
Sourcepub const fn on_dark_magenta(self) -> Self
pub const fn on_dark_magenta(self) -> Self
Turns the background of this Form
dark_magenta
Sourcepub const fn underline_dark_magenta(self) -> Self
pub const fn underline_dark_magenta(self) -> Self
Sourcepub const fn underline_cyan(self) -> Self
pub const fn underline_cyan(self) -> Self
Sourcepub const fn on_dark_cyan(self) -> Self
pub const fn on_dark_cyan(self) -> Self
Turns the background of this Form
dark_cyan
Sourcepub const fn underline_dark_cyan(self) -> Self
pub const fn underline_dark_cyan(self) -> Self
Sourcepub const fn underline_white(self) -> Self
pub const fn underline_white(self) -> Self
Sourcepub const fn underline_grey(self) -> Self
pub const fn underline_grey(self) -> Self
Source§impl BuiltForm
impl BuiltForm
Sourcepub const fn with(self, str: &str) -> Self
pub const fn with(self, str: &str) -> Self
Colors the foreground of this Form
This function accepts three color formats:
- A hexcode, like
"#abcdef", capitalization is ignored; - Three rgb values, like
"rgb 123 456 789"; - Three hsl values, like
"hsl {hue} {sat} {lit}", where {hue}, {sat} and {lit} can either be a number from0..255, or a percentage, followed by'%', e.g."hsl 234 50% 42".
Sourcepub const fn on(self, str: &str) -> Self
pub const fn on(self, str: &str) -> Self
Colors the background of this Form
This function accepts three color formats:
- A hexcode, like
"#abcdef", capitalization is ignored; - Three rgb values, like
"rgb 123 456 789"; - Three hsl values, like
"hsl {hue} {sat} {lit}", where {hue}, {sat} and {lit} can either be a number from0..255, or a percentage, followed by'%', e.g."hsl 234 50% 42".
Sourcepub const fn underline(self, str: &str) -> Self
pub const fn underline(self, str: &str) -> Self
Colors the underlining of this Form
This function accepts three color formats:
- A hexcode, like
"#abcdef", capitalization is ignored; - Three rgb values, like
"rgb 123 456 789"; - Three hsl values, like
"hsl {hue} {sat} {lit}", where {hue}, {sat} and {lit} can either be a number from0..255, or a percentage, followed by'%', e.g."hsl 234 50% 42".