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

#123 in No standard library

Download history 1391/week @ 2024-01-03 1026/week @ 2024-01-10 1376/week @ 2024-01-17 1505/week @ 2024-01-24 1648/week @ 2024-01-31 1451/week @ 2024-02-07 1184/week @ 2024-02-14 1426/week @ 2024-02-21 1356/week @ 2024-02-28 1308/week @ 2024-03-06 2944/week @ 2024-03-13 8600/week @ 2024-03-20 15117/week @ 2024-03-27 18279/week @ 2024-04-03 33613/week @ 2024-04-10 18688/week @ 2024-04-17

88,006 downloads per month
Used in 36 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