Home
last modified time | relevance | path

Searched refs:write_color (Results 1 – 2 of 2) sorted by relevance

/external/rust/crates/codespan-reporting/examples/
Dreadme_preview.rs299 fn write_color<W: Write>(color: &Color, writer: &mut SvgWriter<W>) -> io::Result<()> { in set_color() function
317 write_color(fg, self)?; in set_color()
323 write_color(bg, self)?; in set_color()
/external/rust/crates/termcolor/src/
Dlib.rs1319 self.write_color(true, c, spec.intense)?; in set_color()
1322 self.write_color(false, c, spec.intense)?; in set_color()
1343 fn write_color( in write_color() method
2164 let _ = buf.write_color(true, &Color::Rgb(254, 253, 255), false); in test_var_ansi_write_rgb()
2189 let _ = buf.write_color(false, &Color::Ansi256(7), false); in test_var_ansi_write_256()
2193 let _ = buf.write_color(false, &Color::Ansi256(208), false); in test_var_ansi_write_256()