pub struct TextCharacterPropertiesBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<S: State> TextCharacterPropertiesBuilder<S>
impl<S: State> TextCharacterPropertiesBuilder<S>
Sourcepub fn build(self) -> TextCharacterPropertieswhere
S: IsComplete,
pub fn build(self) -> TextCharacterPropertieswhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn baseline(
self,
value: String,
) -> TextCharacterPropertiesBuilder<SetBaseline<S>>where
S::Baseline: IsUnset,
pub fn baseline(
self,
value: String,
) -> TextCharacterPropertiesBuilder<SetBaseline<S>>where
S::Baseline: IsUnset,
Sourcepub fn maybe_baseline(
self,
value: Option<String>,
) -> TextCharacterPropertiesBuilder<SetBaseline<S>>where
S::Baseline: IsUnset,
pub fn maybe_baseline(
self,
value: Option<String>,
) -> TextCharacterPropertiesBuilder<SetBaseline<S>>where
S::Baseline: IsUnset,
Sourcepub fn bold(self, value: String) -> TextCharacterPropertiesBuilder<SetBold<S>>where
S::Bold: IsUnset,
pub fn bold(self, value: String) -> TextCharacterPropertiesBuilder<SetBold<S>>where
S::Bold: IsUnset,
Sourcepub fn maybe_bold(
self,
value: Option<String>,
) -> TextCharacterPropertiesBuilder<SetBold<S>>where
S::Bold: IsUnset,
pub fn maybe_bold(
self,
value: Option<String>,
) -> TextCharacterPropertiesBuilder<SetBold<S>>where
S::Bold: IsUnset,
Sourcepub fn capitalization(
self,
value: Capitalization,
) -> TextCharacterPropertiesBuilder<SetCapitalization<S>>where
S::Capitalization: IsUnset,
pub fn capitalization(
self,
value: Capitalization,
) -> TextCharacterPropertiesBuilder<SetCapitalization<S>>where
S::Capitalization: IsUnset,
Sourcepub fn maybe_capitalization(
self,
value: Option<Capitalization>,
) -> TextCharacterPropertiesBuilder<SetCapitalization<S>>where
S::Capitalization: IsUnset,
pub fn maybe_capitalization(
self,
value: Option<Capitalization>,
) -> TextCharacterPropertiesBuilder<SetCapitalization<S>>where
S::Capitalization: IsUnset,
Sourcepub fn dirty(self, value: String) -> TextCharacterPropertiesBuilder<SetDirty<S>>where
S::Dirty: IsUnset,
pub fn dirty(self, value: String) -> TextCharacterPropertiesBuilder<SetDirty<S>>where
S::Dirty: IsUnset,
Sourcepub fn maybe_dirty(
self,
value: Option<String>,
) -> TextCharacterPropertiesBuilder<SetDirty<S>>where
S::Dirty: IsUnset,
pub fn maybe_dirty(
self,
value: Option<String>,
) -> TextCharacterPropertiesBuilder<SetDirty<S>>where
S::Dirty: IsUnset,
Sourcepub fn italic(
self,
value: String,
) -> TextCharacterPropertiesBuilder<SetItalic<S>>where
S::Italic: IsUnset,
pub fn italic(
self,
value: String,
) -> TextCharacterPropertiesBuilder<SetItalic<S>>where
S::Italic: IsUnset,
Sourcepub fn maybe_italic(
self,
value: Option<String>,
) -> TextCharacterPropertiesBuilder<SetItalic<S>>where
S::Italic: IsUnset,
pub fn maybe_italic(
self,
value: Option<String>,
) -> TextCharacterPropertiesBuilder<SetItalic<S>>where
S::Italic: IsUnset,
Sourcepub fn kerning(
self,
value: String,
) -> TextCharacterPropertiesBuilder<SetKerning<S>>where
S::Kerning: IsUnset,
pub fn kerning(
self,
value: String,
) -> TextCharacterPropertiesBuilder<SetKerning<S>>where
S::Kerning: IsUnset,
Sourcepub fn maybe_kerning(
self,
value: Option<String>,
) -> TextCharacterPropertiesBuilder<SetKerning<S>>where
S::Kerning: IsUnset,
pub fn maybe_kerning(
self,
value: Option<String>,
) -> TextCharacterPropertiesBuilder<SetKerning<S>>where
S::Kerning: IsUnset,
Sourcepub fn kumimoji(
self,
value: String,
) -> TextCharacterPropertiesBuilder<SetKumimoji<S>>where
S::Kumimoji: IsUnset,
pub fn kumimoji(
self,
value: String,
) -> TextCharacterPropertiesBuilder<SetKumimoji<S>>where
S::Kumimoji: IsUnset,
Sourcepub fn maybe_kumimoji(
self,
value: Option<String>,
) -> TextCharacterPropertiesBuilder<SetKumimoji<S>>where
S::Kumimoji: IsUnset,
pub fn maybe_kumimoji(
self,
value: Option<String>,
) -> TextCharacterPropertiesBuilder<SetKumimoji<S>>where
S::Kumimoji: IsUnset,
Sourcepub fn language(
self,
value: String,
) -> TextCharacterPropertiesBuilder<SetLanguage<S>>where
S::Language: IsUnset,
pub fn language(
self,
value: String,
) -> TextCharacterPropertiesBuilder<SetLanguage<S>>where
S::Language: IsUnset,
Sourcepub fn maybe_language(
self,
value: Option<String>,
) -> TextCharacterPropertiesBuilder<SetLanguage<S>>where
S::Language: IsUnset,
pub fn maybe_language(
self,
value: Option<String>,
) -> TextCharacterPropertiesBuilder<SetLanguage<S>>where
S::Language: IsUnset,
Sourcepub fn no_proofing(
self,
value: String,
) -> TextCharacterPropertiesBuilder<SetNoProofing<S>>where
S::NoProofing: IsUnset,
pub fn no_proofing(
self,
value: String,
) -> TextCharacterPropertiesBuilder<SetNoProofing<S>>where
S::NoProofing: IsUnset,
Sourcepub fn maybe_no_proofing(
self,
value: Option<String>,
) -> TextCharacterPropertiesBuilder<SetNoProofing<S>>where
S::NoProofing: IsUnset,
pub fn maybe_no_proofing(
self,
value: Option<String>,
) -> TextCharacterPropertiesBuilder<SetNoProofing<S>>where
S::NoProofing: IsUnset,
Sourcepub fn normalize_heights(
self,
value: String,
) -> TextCharacterPropertiesBuilder<SetNormalizeHeights<S>>where
S::NormalizeHeights: IsUnset,
pub fn normalize_heights(
self,
value: String,
) -> TextCharacterPropertiesBuilder<SetNormalizeHeights<S>>where
S::NormalizeHeights: IsUnset,
Sourcepub fn maybe_normalize_heights(
self,
value: Option<String>,
) -> TextCharacterPropertiesBuilder<SetNormalizeHeights<S>>where
S::NormalizeHeights: IsUnset,
pub fn maybe_normalize_heights(
self,
value: Option<String>,
) -> TextCharacterPropertiesBuilder<SetNormalizeHeights<S>>where
S::NormalizeHeights: IsUnset,
Sourcepub fn spacing(
self,
value: String,
) -> TextCharacterPropertiesBuilder<SetSpacing<S>>where
S::Spacing: IsUnset,
pub fn spacing(
self,
value: String,
) -> TextCharacterPropertiesBuilder<SetSpacing<S>>where
S::Spacing: IsUnset,
Sourcepub fn maybe_spacing(
self,
value: Option<String>,
) -> TextCharacterPropertiesBuilder<SetSpacing<S>>where
S::Spacing: IsUnset,
pub fn maybe_spacing(
self,
value: Option<String>,
) -> TextCharacterPropertiesBuilder<SetSpacing<S>>where
S::Spacing: IsUnset,
Sourcepub fn size(self, value: String) -> TextCharacterPropertiesBuilder<SetSize<S>>where
S::Size: IsUnset,
pub fn size(self, value: String) -> TextCharacterPropertiesBuilder<SetSize<S>>where
S::Size: IsUnset,
Sourcepub fn maybe_size(
self,
value: Option<String>,
) -> TextCharacterPropertiesBuilder<SetSize<S>>where
S::Size: IsUnset,
pub fn maybe_size(
self,
value: Option<String>,
) -> TextCharacterPropertiesBuilder<SetSize<S>>where
S::Size: IsUnset,
Sourcepub fn strikethrough(
self,
value: Strikethrough,
) -> TextCharacterPropertiesBuilder<SetStrikethrough<S>>where
S::Strikethrough: IsUnset,
pub fn strikethrough(
self,
value: Strikethrough,
) -> TextCharacterPropertiesBuilder<SetStrikethrough<S>>where
S::Strikethrough: IsUnset,
Sourcepub fn maybe_strikethrough(
self,
value: Option<Strikethrough>,
) -> TextCharacterPropertiesBuilder<SetStrikethrough<S>>where
S::Strikethrough: IsUnset,
pub fn maybe_strikethrough(
self,
value: Option<Strikethrough>,
) -> TextCharacterPropertiesBuilder<SetStrikethrough<S>>where
S::Strikethrough: IsUnset,
Sourcepub fn underline(
self,
value: String,
) -> TextCharacterPropertiesBuilder<SetUnderline<S>>where
S::Underline: IsUnset,
pub fn underline(
self,
value: String,
) -> TextCharacterPropertiesBuilder<SetUnderline<S>>where
S::Underline: IsUnset,
Sourcepub fn maybe_underline(
self,
value: Option<String>,
) -> TextCharacterPropertiesBuilder<SetUnderline<S>>where
S::Underline: IsUnset,
pub fn maybe_underline(
self,
value: Option<String>,
) -> TextCharacterPropertiesBuilder<SetUnderline<S>>where
S::Underline: IsUnset,
Sourcepub fn line(self, value: Line) -> TextCharacterPropertiesBuilder<SetLine<S>>where
S::Line: IsUnset,
pub fn line(self, value: Line) -> TextCharacterPropertiesBuilder<SetLine<S>>where
S::Line: IsUnset,
Sourcepub fn maybe_line(
self,
value: Option<Line>,
) -> TextCharacterPropertiesBuilder<SetLine<S>>where
S::Line: IsUnset,
pub fn maybe_line(
self,
value: Option<Line>,
) -> TextCharacterPropertiesBuilder<SetLine<S>>where
S::Line: IsUnset,
Sourcepub fn effect_list(
self,
value: EffectContainer,
) -> TextCharacterPropertiesBuilder<SetEffectList<S>>where
S::EffectList: IsUnset,
pub fn effect_list(
self,
value: EffectContainer,
) -> TextCharacterPropertiesBuilder<SetEffectList<S>>where
S::EffectList: IsUnset,
Sourcepub fn maybe_effect_list(
self,
value: Option<EffectContainer>,
) -> TextCharacterPropertiesBuilder<SetEffectList<S>>where
S::EffectList: IsUnset,
pub fn maybe_effect_list(
self,
value: Option<EffectContainer>,
) -> TextCharacterPropertiesBuilder<SetEffectList<S>>where
S::EffectList: IsUnset,
Sourcepub fn underline_follows_text(
self,
value: UnderlineFollowsText,
) -> TextCharacterPropertiesBuilder<SetUnderlineFollowsText<S>>where
S::UnderlineFollowsText: IsUnset,
pub fn underline_follows_text(
self,
value: UnderlineFollowsText,
) -> TextCharacterPropertiesBuilder<SetUnderlineFollowsText<S>>where
S::UnderlineFollowsText: IsUnset,
Sourcepub fn maybe_underline_follows_text(
self,
value: Option<UnderlineFollowsText>,
) -> TextCharacterPropertiesBuilder<SetUnderlineFollowsText<S>>where
S::UnderlineFollowsText: IsUnset,
pub fn maybe_underline_follows_text(
self,
value: Option<UnderlineFollowsText>,
) -> TextCharacterPropertiesBuilder<SetUnderlineFollowsText<S>>where
S::UnderlineFollowsText: IsUnset,
Sourcepub fn underline_stroke(
self,
value: UnderlineStroke,
) -> TextCharacterPropertiesBuilder<SetUnderlineStroke<S>>where
S::UnderlineStroke: IsUnset,
pub fn underline_stroke(
self,
value: UnderlineStroke,
) -> TextCharacterPropertiesBuilder<SetUnderlineStroke<S>>where
S::UnderlineStroke: IsUnset,
Sourcepub fn maybe_underline_stroke(
self,
value: Option<UnderlineStroke>,
) -> TextCharacterPropertiesBuilder<SetUnderlineStroke<S>>where
S::UnderlineStroke: IsUnset,
pub fn maybe_underline_stroke(
self,
value: Option<UnderlineStroke>,
) -> TextCharacterPropertiesBuilder<SetUnderlineStroke<S>>where
S::UnderlineStroke: IsUnset,
Sourcepub fn underline_fill_properties_follow_text(
self,
value: UnderlineFillPropertiesFollowText,
) -> TextCharacterPropertiesBuilder<SetUnderlineFillPropertiesFollowText<S>>where
S::UnderlineFillPropertiesFollowText: IsUnset,
pub fn underline_fill_properties_follow_text(
self,
value: UnderlineFillPropertiesFollowText,
) -> TextCharacterPropertiesBuilder<SetUnderlineFillPropertiesFollowText<S>>where
S::UnderlineFillPropertiesFollowText: IsUnset,
Sourcepub fn maybe_underline_fill_properties_follow_text(
self,
value: Option<UnderlineFillPropertiesFollowText>,
) -> TextCharacterPropertiesBuilder<SetUnderlineFillPropertiesFollowText<S>>where
S::UnderlineFillPropertiesFollowText: IsUnset,
pub fn maybe_underline_fill_properties_follow_text(
self,
value: Option<UnderlineFillPropertiesFollowText>,
) -> TextCharacterPropertiesBuilder<SetUnderlineFillPropertiesFollowText<S>>where
S::UnderlineFillPropertiesFollowText: IsUnset,
Sourcepub fn underline_fill(
self,
value: UnderlineFill,
) -> TextCharacterPropertiesBuilder<SetUnderlineFill<S>>where
S::UnderlineFill: IsUnset,
pub fn underline_fill(
self,
value: UnderlineFill,
) -> TextCharacterPropertiesBuilder<SetUnderlineFill<S>>where
S::UnderlineFill: IsUnset,
Sourcepub fn maybe_underline_fill(
self,
value: Option<UnderlineFill>,
) -> TextCharacterPropertiesBuilder<SetUnderlineFill<S>>where
S::UnderlineFill: IsUnset,
pub fn maybe_underline_fill(
self,
value: Option<UnderlineFill>,
) -> TextCharacterPropertiesBuilder<SetUnderlineFill<S>>where
S::UnderlineFill: IsUnset,
Sourcepub fn font_complex_script(
self,
value: FontComplexScript,
) -> TextCharacterPropertiesBuilder<SetFontComplexScript<S>>where
S::FontComplexScript: IsUnset,
pub fn font_complex_script(
self,
value: FontComplexScript,
) -> TextCharacterPropertiesBuilder<SetFontComplexScript<S>>where
S::FontComplexScript: IsUnset,
Sourcepub fn maybe_font_complex_script(
self,
value: Option<FontComplexScript>,
) -> TextCharacterPropertiesBuilder<SetFontComplexScript<S>>where
S::FontComplexScript: IsUnset,
pub fn maybe_font_complex_script(
self,
value: Option<FontComplexScript>,
) -> TextCharacterPropertiesBuilder<SetFontComplexScript<S>>where
S::FontComplexScript: IsUnset,
Sourcepub fn font_east_asian(
self,
value: FontEastAsian,
) -> TextCharacterPropertiesBuilder<SetFontEastAsian<S>>where
S::FontEastAsian: IsUnset,
pub fn font_east_asian(
self,
value: FontEastAsian,
) -> TextCharacterPropertiesBuilder<SetFontEastAsian<S>>where
S::FontEastAsian: IsUnset,
Sourcepub fn maybe_font_east_asian(
self,
value: Option<FontEastAsian>,
) -> TextCharacterPropertiesBuilder<SetFontEastAsian<S>>where
S::FontEastAsian: IsUnset,
pub fn maybe_font_east_asian(
self,
value: Option<FontEastAsian>,
) -> TextCharacterPropertiesBuilder<SetFontEastAsian<S>>where
S::FontEastAsian: IsUnset,
Sourcepub fn font_symbol(
self,
value: FontSymbol,
) -> TextCharacterPropertiesBuilder<SetFontSymbol<S>>where
S::FontSymbol: IsUnset,
pub fn font_symbol(
self,
value: FontSymbol,
) -> TextCharacterPropertiesBuilder<SetFontSymbol<S>>where
S::FontSymbol: IsUnset,
Sourcepub fn maybe_font_symbol(
self,
value: Option<FontSymbol>,
) -> TextCharacterPropertiesBuilder<SetFontSymbol<S>>where
S::FontSymbol: IsUnset,
pub fn maybe_font_symbol(
self,
value: Option<FontSymbol>,
) -> TextCharacterPropertiesBuilder<SetFontSymbol<S>>where
S::FontSymbol: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for TextCharacterPropertiesBuilder<S>
impl<S> RefUnwindSafe for TextCharacterPropertiesBuilder<S>
impl<S> Send for TextCharacterPropertiesBuilder<S>
impl<S> Sync for TextCharacterPropertiesBuilder<S>
impl<S> Unpin for TextCharacterPropertiesBuilder<S>
impl<S> UnwindSafe for TextCharacterPropertiesBuilder<S>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<D> OwoColorize for D
impl<D> OwoColorize for D
Source§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
Set the foreground color generically Read more
Source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Set the background color generically. Read more
Source§fn black(&self) -> FgColorDisplay<'_, Black, Self>
fn black(&self) -> FgColorDisplay<'_, Black, Self>
Change the foreground color to black
Source§fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
Change the background color to black
Source§fn red(&self) -> FgColorDisplay<'_, Red, Self>
fn red(&self) -> FgColorDisplay<'_, Red, Self>
Change the foreground color to red
Source§fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
Change the background color to red
Source§fn green(&self) -> FgColorDisplay<'_, Green, Self>
fn green(&self) -> FgColorDisplay<'_, Green, Self>
Change the foreground color to green
Source§fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
Change the background color to green
Source§fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
Change the foreground color to yellow
Source§fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
Change the background color to yellow
Source§fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
Change the foreground color to blue
Source§fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
Change the background color to blue
Source§fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
Change the foreground color to magenta
Source§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Change the background color to magenta
Source§fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
Change the foreground color to purple
Source§fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
Change the background color to purple
Source§fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
Change the foreground color to cyan
Source§fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
Change the background color to cyan
Source§fn white(&self) -> FgColorDisplay<'_, White, Self>
fn white(&self) -> FgColorDisplay<'_, White, Self>
Change the foreground color to white
Source§fn on_white(&self) -> BgColorDisplay<'_, White, Self>
fn on_white(&self) -> BgColorDisplay<'_, White, Self>
Change the background color to white
Source§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Change the foreground color to the terminal default
Source§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Change the background color to the terminal default
Source§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Change the foreground color to bright black
Source§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Change the background color to bright black
Source§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Change the foreground color to bright red
Source§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Change the background color to bright red
Source§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Change the foreground color to bright green
Source§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Change the background color to bright green
Source§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Change the foreground color to bright yellow
Source§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Change the background color to bright yellow
Source§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Change the foreground color to bright blue
Source§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Change the background color to bright blue
Source§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Change the foreground color to bright magenta
Source§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Change the background color to bright magenta
Source§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Change the foreground color to bright purple
Source§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Change the background color to bright purple
Source§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Change the foreground color to bright cyan
Source§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Change the background color to bright cyan
Source§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Change the foreground color to bright white
Source§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Change the background color to bright white
Source§fn bold(&self) -> BoldDisplay<'_, Self>
fn bold(&self) -> BoldDisplay<'_, Self>
Make the text bold
Source§fn dimmed(&self) -> DimDisplay<'_, Self>
fn dimmed(&self) -> DimDisplay<'_, Self>
Make the text dim
Source§fn italic(&self) -> ItalicDisplay<'_, Self>
fn italic(&self) -> ItalicDisplay<'_, Self>
Make the text italicized
Source§fn underline(&self) -> UnderlineDisplay<'_, Self>
fn underline(&self) -> UnderlineDisplay<'_, Self>
Make the text underlined
Source§fn blink(&self) -> BlinkDisplay<'_, Self>
fn blink(&self) -> BlinkDisplay<'_, Self>
Make the text blink
Source§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Make the text blink (but fast!)
Source§fn reversed(&self) -> ReversedDisplay<'_, Self>
fn reversed(&self) -> ReversedDisplay<'_, Self>
Swap the foreground and background colors
Hide the text
Source§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Cross out the text
Source§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
Set the foreground color at runtime. Only use if you do not know which color will be used at
compile-time. If the color is constant, use either
OwoColorize::fg
or
a color-specific method, such as OwoColorize::green
, Read moreSource§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
Set the background color at runtime. Only use if you do not know what color to use at
compile-time. If the color is constant, use either
OwoColorize::bg
or
a color-specific method, such as OwoColorize::on_yellow
, Read moreSource§fn fg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
Set the foreground color to a specific RGB value.
Source§fn bg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
Set the background color to a specific RGB value.
Source§fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
Sets the foreground color to an RGB value.
Source§fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
Sets the background color to an RGB value.