Debian Codegraph @

examples/overwrite.rs

raw symbols SCIP
1 extern crate yansi_term;
2 use yansi_term::{Colour::*, Style};
3
4 // This example prints out the 16 basic colours.
5
6 fn main() {
7 println!(
8 "{}",
9 Red.paint_fn(|f| {
10 f.write_str("RED")?;
11 Style::new().bold().write_prefix(f)?;
12 f.write_str("RED_BOLD")?;
13 Style::write_reset(f)?;
14 Black.write_prefix(f)?;
15 f.write_str("BLACK")
16 })
17 );
18 }