#string #trim #in-place

no-std trim-in-place

In-place trimming strings

7 releases

0.1.6 Apr 22, 2021
0.1.5 Aug 1, 2020
0.1.4 Jul 29, 2020
0.1.3 Jun 29, 2020

#64 in No standard library

Download history 36/week @ 2021-08-11 53/week @ 2021-08-18 23/week @ 2021-08-25 52/week @ 2021-09-01 89/week @ 2021-09-08 21/week @ 2021-09-15 189/week @ 2021-09-22 136/week @ 2021-09-29 382/week @ 2021-10-06 232/week @ 2021-10-13 215/week @ 2021-10-20 160/week @ 2021-10-27 49/week @ 2021-11-03 162/week @ 2021-11-10 68/week @ 2021-11-17 46/week @ 2021-11-24

338 downloads per month
Used in 5 crates (3 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

extern crate trim_in_place;

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

extern crate trim_in_place;

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

9`