Debian Codegraph @

examples/most_simple.rs

raw symbols SCIP
1 extern crate colored;
2
3 use colored::Colorize;
4
5 fn main() {
6 // TADAA !
7 println!(
8 "{} {} {}!",
9 "it".green(),
10 "works".blue().bold(),
11 "great".bold().yellow()
12 );
13
14 println!("{}", String::from("this also works!").green().bold());
15
16 let mut s = String::new();
17 s.push_str(&"why not ".red().to_string());
18 s.push_str(&"push things ".blue().to_string());
19 s.push_str(&"a little further ?".green().to_string());
20 println!("{s}");
21
22 let s = format!("{} {} {}", "this".red(), "is".blue(), "easier".green());
23 println!("{s}");
24 }