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

#94 in No standard library

Download history 102118/week @ 2024-11-30 110284/week @ 2024-12-07 122486/week @ 2024-12-14 72143/week @ 2024-12-21 91361/week @ 2024-12-28 164749/week @ 2025-01-04 155198/week @ 2025-01-11 105539/week @ 2025-01-18 104760/week @ 2025-01-25 118122/week @ 2025-02-01 122892/week @ 2025-02-08 117075/week @ 2025-02-15 149093/week @ 2025-02-22 149541/week @ 2025-03-01 180558/week @ 2025-03-08 152207/week @ 2025-03-15

652,437 downloads per month
Used in 156 crates (6 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


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

No runtime deps