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

Function print_char

cli-table/src/utils.rs:149–153  ·  view source on GitHub ↗
(buffers: &mut Buffers<'_>, c: char, color_spec: &ColorSpec)

Source from the content-addressed store, hash-verified

147}
148
149pub(crate) fn print_char(buffers: &mut Buffers<'_>, c: char, color_spec: &ColorSpec) -> Result<()> {
150 buffers.set_color(color_spec)?;
151 write!(buffers, "{}", c)?;
152 buffers.reset()
153}
154
155pub(crate) fn println(buffers: &mut Buffers<'_>) -> Result<()> {
156 writeln!(buffers)

Callers 3

print_horizontal_lineFunction · 0.85
print_vertical_lineFunction · 0.85
buffersMethod · 0.85

Calls 2

set_colorMethod · 0.80
resetMethod · 0.80

Tested by

no test coverage detected