Skip to main content

style

Function style 

Source
pub fn style(text: &str, code: &str, enabled: bool) -> String
Expand description

Wrap text in the given ANSI SGR code when enabled, otherwise return text unchanged.