Function kalgan_string::strip_both
source · [−]Expand description
Removes the given characters at the beginning and at the end of the string.
Examples
use kalgan_string;
assert_eq!(kalgan_string::strip_both("Hello World", 'H', 'd'), "ello Worl");