MCPcopy Create free account
hub / github.com/hashintel/hash / set_foreground

Method set_foreground

libs/error-stack/src/fmt/color.rs:286–288  ·  view source on GitHub ↗
(&mut self, color: Color, bright: bool)

Source from the content-addressed store, hash-verified

284 }
285
286 pub(crate) const fn set_foreground(&mut self, color: Color, bright: bool) {
287 self.foreground = Some(Foreground { color, bright });
288 }
289
290 pub(crate) const fn set_display(&mut self, style: DisplayStyle) {
291 self.display = Some(style);

Callers 2

fmtMethod · 0.80
fmtMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected