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

#44 in No standard library

Download history 3186/week @ 2024-03-14 9396/week @ 2024-03-21 14926/week @ 2024-03-28 22526/week @ 2024-04-04 31727/week @ 2024-04-11 26378/week @ 2024-04-18 33212/week @ 2024-04-25 27598/week @ 2024-05-02 27571/week @ 2024-05-09 29167/week @ 2024-05-16 26441/week @ 2024-05-23 35508/week @ 2024-05-30 30291/week @ 2024-06-06 38770/week @ 2024-06-13 36118/week @ 2024-06-20 37619/week @ 2024-06-27

150,829 downloads per month
Used in 63 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