Function style

pub fn style<D>(val: D) -> StyledObject<D>

Wraps an object for formatting for styling.

Example:

# use console::style;
format!("Hello {}", style("World").cyan());

This is a shortcut for making a new style and applying it to a value:

# use console::Style;
format!("Hello {}", Style::new().cyan().apply_to("World"));