Crates.io | trim-in-place |
lib.rs | trim-in-place |
version | 0.1.7 |
source | src |
created_at | 2020-06-08 07:34:14.465184 |
updated_at | 2022-03-19 05:31:28.156953 |
description | In-place trimming strings. |
homepage | https://magiclen.org/trim-in-place |
repository | https://github.com/magiclen/trim-in-place |
max_upload_size | |
id | 251235 |
size | 8,963 |
This crate is used for extending String
in order to do in-place trimming.
use trim_in_place::TrimInPlace;
let mut s = String::from(" 1234 abcd ");
s.trim_in_place();
assert_eq!("1234 abcd", s);
cargo bench
https://crates.io/crates/trim-in-place