extern crate colored_truecolor; use colored_truecolor::*; fn main() { // the easy way "blue string yo".color("blue"); // this will default to white "white string".color("zorglub"); // the safer way via a Result let color_res = "zorglub".parse(); // <- this returns a Result "red string".color(color_res.unwrap_or(Color::Red)); }