MCPcopy Create free account
hub / github.com/csskit/csskit / bold_red

Function bold_red

crates/csskit/src/color_ext.rs:75–79  ·  view source on GitHub ↗
(text: T)

Source from the content-addressed store, hash-verified

73
74#[cfg(feature = "anstyle")]
75pub fn bold_red<T: std::fmt::Display>(text: T) -> String {
76 use anstyle::{AnsiColor, Style};
77 let style = Style::new().bold().fg_color(Some(anstyle::Color::Ansi(AnsiColor::Red)));
78 format!("{style}{text}{style:#}")
79}
80
81#[cfg(feature = "owo-colors")]
82#[cfg(not(feature = "anstyle"))]

Callers 1

hint_no_inputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected