Skip to main content

process_string

Function process_string 

Source
pub fn process_string<'a>(s: &'a str, needs_modification: bool) -> Cow<'a, str>
Expand description

Process a string without cloning unless modification is needed