trim-in-place

Crates.iotrim-in-place
lib.rstrim-in-place
version0.1.7
sourcesrc
created_at2020-06-08 07:34:14.465184
updated_at2022-03-19 05:31:28.156953
descriptionIn-place trimming strings.
homepagehttps://magiclen.org/trim-in-place
repositoryhttps://github.com/magiclen/trim-in-place
max_upload_size
id251235
size8,963
Magic Len (Ron Li) (magiclen)

documentation

README

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

Commit count: 12

cargo fmt