This crate is used for extending String in order to do in-place trimming.
use trim_in_place::TrimInPlace;
let mut s = String::from(" 1234 abcd ");
s.trim_in_place();
assert_eq!("1234 abcd", s);cargo bench| Name | Name | Last commit date | ||
|---|---|---|---|---|
This crate is used for extending String in order to do in-place trimming.
use trim_in_place::TrimInPlace;
let mut s = String::from(" 1234 abcd ");
s.trim_in_place();
assert_eq!("1234 abcd", s);cargo bench