MCPcopy Create free account
hub / github.com/devashishdxt/cli-table / print_str

Function print_str

cli-table/src/utils.rs:143–147  ·  view source on GitHub ↗
(buffers: &mut Buffers<'_>, s: &str, color_spec: &ColorSpec)

Source from the content-addressed store, hash-verified

141}
142
143pub(crate) fn print_str(buffers: &mut Buffers<'_>, s: &str, color_spec: &ColorSpec) -> Result<()> {
144 buffers.set_color(color_spec)?;
145 write!(buffers, "{}", s)?;
146 buffers.reset()
147}
148
149pub(crate) fn print_char(buffers: &mut Buffers<'_>, c: char, color_spec: &ColorSpec) -> Result<()> {
150 buffers.set_color(color_spec)?;

Callers 1

print_horizontal_lineFunction · 0.85

Calls 2

set_colorMethod · 0.80
resetMethod · 0.80

Tested by

no test coverage detected