diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:57:19 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:57:19 +0000 |
commit | a0b8f38ab54ac451646aa00cd5e91b6c76f22a84 (patch) | |
tree | fc451898ccaf445814e26b46664d78702178101d /vendor/anstyle/src | |
parent | Adding debian version 1.71.1+dfsg1-2. (diff) | |
download | rustc-a0b8f38ab54ac451646aa00cd5e91b6c76f22a84.tar.xz rustc-a0b8f38ab54ac451646aa00cd5e91b6c76f22a84.zip |
Merging upstream version 1.72.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/anstyle/src')
-rw-r--r-- | vendor/anstyle/src/color.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/vendor/anstyle/src/color.rs b/vendor/anstyle/src/color.rs index 40fa7dfa9..cbf0b47a2 100644 --- a/vendor/anstyle/src/color.rs +++ b/vendor/anstyle/src/color.rs @@ -7,7 +7,7 @@ pub enum Color { } impl Color { - /// Create a [`Style`][crate::Style] with this as the foregroun + /// Create a [`Style`][crate::Style] with this as the foreground #[inline] pub fn on(self, background: impl Into<Color>) -> crate::Style { crate::Style::new() @@ -15,7 +15,7 @@ impl Color { .bg_color(Some(background.into())) } - /// Create a [`Style`][crate::Style] with this as the foregroun + /// Create a [`Style`][crate::Style] with this as the foreground #[inline] pub fn on_default(self) -> crate::Style { crate::Style::new().fg_color(Some(self)) @@ -175,7 +175,7 @@ pub enum AnsiColor { } impl AnsiColor { - /// Create a [`Style`][crate::Style] with this as the foregroun + /// Create a [`Style`][crate::Style] with this as the foreground #[inline] pub fn on(self, background: impl Into<Color>) -> crate::Style { crate::Style::new() @@ -183,7 +183,7 @@ impl AnsiColor { .bg_color(Some(background.into())) } - /// Create a [`Style`][crate::Style] with this as the foregroun + /// Create a [`Style`][crate::Style] with this as the foreground #[inline] pub fn on_default(self) -> crate::Style { crate::Style::new().fg_color(Some(self.into())) @@ -330,7 +330,7 @@ impl AnsiColor { pub struct Ansi256Color(pub u8); impl Ansi256Color { - /// Create a [`Style`][crate::Style] with this as the foregroun + /// Create a [`Style`][crate::Style] with this as the foreground #[inline] pub fn on(self, background: impl Into<Color>) -> crate::Style { crate::Style::new() @@ -338,7 +338,7 @@ impl Ansi256Color { .bg_color(Some(background.into())) } - /// Create a [`Style`][crate::Style] with this as the foregroun + /// Create a [`Style`][crate::Style] with this as the foreground #[inline] pub fn on_default(self) -> crate::Style { crate::Style::new().fg_color(Some(self.into())) @@ -450,7 +450,7 @@ impl From<AnsiColor> for Ansi256Color { pub struct RgbColor(pub u8, pub u8, pub u8); impl RgbColor { - /// Create a [`Style`][crate::Style] with this as the foregroun + /// Create a [`Style`][crate::Style] with this as the foreground #[inline] pub fn on(self, background: impl Into<Color>) -> crate::Style { crate::Style::new() @@ -458,7 +458,7 @@ impl RgbColor { .bg_color(Some(background.into())) } - /// Create a [`Style`][crate::Style] with this as the foregroun + /// Create a [`Style`][crate::Style] with this as the foreground #[inline] pub fn on_default(self) -> crate::Style { crate::Style::new().fg_color(Some(self.into())) |