#string #trim #in-place

no-std trim-in-place

In-place trimming strings

4 releases

✓ Uses Rust 2018 edition

0.1.3 Jun 29, 2020
0.1.2 Jun 27, 2020
0.1.1 Jun 8, 2020
0.1.0 Jun 8, 2020

#228 in No standard library

MIT license

3KB

Trim in-place

Build Status

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

No runtime deps