8 releases
0.1.7 | Mar 19, 2022 |
---|---|
0.1.6 | Apr 22, 2021 |
0.1.5 | Aug 1, 2020 |
0.1.4 | Jul 29, 2020 |
0.1.3 | Jun 29, 2020 |
#48 in No standard library
291,570 downloads per month
Used in 120 crates
(6 directly)
6KB
78 lines
Trim in-place
This crate is used for extending String
in order to do in-place trimming.
Usage
use trim_in_place::TrimInPlace;
let mut s = String::from(" 1234 abcd ");
s.trim_in_place();
assert_eq!("1234 abcd", s);
Benchmark
cargo bench
Crates.io
https://crates.io/crates/trim-in-place
Documentation
License
lib.rs
:
Trim in-place
This crate is used for extending String
in order to do in-place trimming.
Usage
use trim_in_place::TrimInPlace;
let mut s = String::from(" 1234 abcd ");
s.trim_in_place();
assert_eq!("1234 abcd", s);
Benchmark
cargo bench