Function trim_of
Source pub fn trim_of(s: &str, target: char, before: bool, after: bool) -> String
Expand description
Trim a specific character from the beginning and/or end of a string
§Arguments
s - The string to trim
target - The character to trim
before - Whether to trim from the beginning
after - Whether to trim from the end
§Returns
The trimmed string