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

#35 in No standard library

Download history 185/week @ 2023-02-08 135/week @ 2023-02-15 113/week @ 2023-02-22 206/week @ 2023-03-01 213/week @ 2023-03-08 264/week @ 2023-03-15 141/week @ 2023-03-22 125/week @ 2023-03-29 238/week @ 2023-04-05 295/week @ 2023-04-12 206/week @ 2023-04-19 188/week @ 2023-04-26 96/week @ 2023-05-03 105/week @ 2023-05-10 93/week @ 2023-05-17 94/week @ 2023-05-24

400 downloads per month
Used in 10 crates (5 directly)

MIT license

5KB
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