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
Turns the underlining of this Form
black
Do note that this feature may not be supported in all Uis,
for example, various terminals don’t support this feature,
since it is a part of the kitty protocol, and hasn’t been
universally accepted yet.
Ui: crate::ui::traits::RawUi
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
Turns the underlining of this Form
dark_grey
Do note that this feature may not be supported in all Uis,
for example, various terminals don’t support this feature,
since it is a part of the kitty protocol, and hasn’t been
universally accepted yet.
Ui: crate::ui::traits::RawUi
Sourcepub const fn underline_red(self) -> Self
pub const fn underline_red(self) -> Self
Turns the underlining of this Form
red
Do note that this feature may not be supported in all Uis,
for example, various terminals don’t support this feature,
since it is a part of the kitty protocol, and hasn’t been
universally accepted yet.
Ui: crate::ui::traits::RawUi
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
Turns the underlining of this Form
dark_red
Do note that this feature may not be supported in all Uis,
for example, various terminals don’t support this feature,
since it is a part of the kitty protocol, and hasn’t been
universally accepted yet.
Ui: crate::ui::traits::RawUi
Sourcepub const fn underline_green(self) -> Self
pub const fn underline_green(self) -> Self
Turns the underlining of this Form
green
Do note that this feature may not be supported in all Uis,
for example, various terminals don’t support this feature,
since it is a part of the kitty protocol, and hasn’t been
universally accepted yet.
Ui: crate::ui::traits::RawUi
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
Turns the underlining of this Form
dark_green
Do note that this feature may not be supported in all Uis,
for example, various terminals don’t support this feature,
since it is a part of the kitty protocol, and hasn’t been
universally accepted yet.
Ui: crate::ui::traits::RawUi
Sourcepub const fn underline_yellow(self) -> Self
pub const fn underline_yellow(self) -> Self
Turns the underlining of this Form
yellow
Do note that this feature may not be supported in all Uis,
for example, various terminals don’t support this feature,
since it is a part of the kitty protocol, and hasn’t been
universally accepted yet.
Ui: crate::ui::traits::RawUi
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
Turns the underlining of this Form
dark_yellow
Do note that this feature may not be supported in all Uis,
for example, various terminals don’t support this feature,
since it is a part of the kitty protocol, and hasn’t been
universally accepted yet.
Ui: crate::ui::traits::RawUi
Sourcepub const fn underline_blue(self) -> Self
pub const fn underline_blue(self) -> Self
Turns the underlining of this Form
blue
Do note that this feature may not be supported in all Uis,
for example, various terminals don’t support this feature,
since it is a part of the kitty protocol, and hasn’t been
universally accepted yet.
Ui: crate::ui::traits::RawUi
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
Turns the underlining of this Form
dark_blue
Do note that this feature may not be supported in all Uis,
for example, various terminals don’t support this feature,
since it is a part of the kitty protocol, and hasn’t been
universally accepted yet.
Ui: crate::ui::traits::RawUi
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
Turns the underlining of this Form
magenta
Do note that this feature may not be supported in all Uis,
for example, various terminals don’t support this feature,
since it is a part of the kitty protocol, and hasn’t been
universally accepted yet.
Ui: crate::ui::traits::RawUi
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
Turns the underlining of this Form
dark_magenta
Do note that this feature may not be supported in all Uis,
for example, various terminals don’t support this feature,
since it is a part of the kitty protocol, and hasn’t been
universally accepted yet.
Ui: crate::ui::traits::RawUi
Sourcepub const fn underline_cyan(self) -> Self
pub const fn underline_cyan(self) -> Self
Turns the underlining of this Form
cyan
Do note that this feature may not be supported in all Uis,
for example, various terminals don’t support this feature,
since it is a part of the kitty protocol, and hasn’t been
universally accepted yet.
Ui: crate::ui::traits::RawUi
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
Turns the underlining of this Form
dark_cyan
Do note that this feature may not be supported in all Uis,
for example, various terminals don’t support this feature,
since it is a part of the kitty protocol, and hasn’t been
universally accepted yet.
Ui: crate::ui::traits::RawUi
Sourcepub const fn underline_white(self) -> Self
pub const fn underline_white(self) -> Self
Turns the underlining of this Form
white
Do note that this feature may not be supported in all Uis,
for example, various terminals don’t support this feature,
since it is a part of the kitty protocol, and hasn’t been
universally accepted yet.
Ui: crate::ui::traits::RawUi
Sourcepub const fn underline_grey(self) -> Self
pub const fn underline_grey(self) -> Self
Turns the underlining of this Form
grey
Do note that this feature may not be supported in all Uis,
for example, various terminals don’t support this feature,
since it is a part of the kitty protocol, and hasn’t been
universally accepted yet.
Ui: crate::ui::traits::RawUi
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".
Trait Implementations§
impl Copy for BuiltForm
Auto Trait Implementations§
impl Freeze for BuiltForm
impl RefUnwindSafe for BuiltForm
impl Send for BuiltForm
impl Sync for BuiltForm
impl Unpin for BuiltForm
impl UnwindSafe for BuiltForm
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.