Function coloured_strings::colour

source ·
pub fn colour(text: &str, colour: &str) -> String
Expand description

This function takes the &str, then calls the “colourise” function to convert it into a coloured string.


Examples

coloured("this is a black string", "black");