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

#51 in No standard library

Download history 175622/week @ 2025-05-16 178225/week @ 2025-05-23 203533/week @ 2025-05-30 194679/week @ 2025-06-06 211290/week @ 2025-06-13 223456/week @ 2025-06-20 205845/week @ 2025-06-27 176257/week @ 2025-07-04 158026/week @ 2025-07-11 149691/week @ 2025-07-18 159174/week @ 2025-07-25 151270/week @ 2025-08-01 129933/week @ 2025-08-08 161506/week @ 2025-08-15 186298/week @ 2025-08-22 135015/week @ 2025-08-29

637,513 downloads per month
Used in 16 crates (5 directly)

MIT license

6KB
78 lines

Trim in-place

CI

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

https://docs.rs/trim-in-place

License

MIT

No runtime deps