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

Function bold_green

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

Source from the content-addressed store, hash-verified

87
88#[cfg(feature = "anstyle")]
89pub fn bold_green<T: std::fmt::Display>(text: T) -> String {
90 use anstyle::{AnsiColor, Style};
91 let style = Style::new().bold().fg_color(Some(anstyle::Color::Ansi(AnsiColor::Green)));
92 format!("{style}{text}{style:#}")
93}
94
95#[cfg(feature = "owo-colors")]
96#[cfg(not(feature = "anstyle"))]

Callers 2

hint_no_inputFunction · 0.85
hint_bad_sheetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected