#concat #concatenation #string #macro #string-manipulation

concat-string

Provides macros for concatenating string slices into owned strings

2 stable releases

Uses old Rust 2015

1.0.1 Jul 1, 2018
1.0.0 Sep 28, 2017

#1 in #concatenation

Download history 3404/week @ 2023-07-20 3594/week @ 2023-07-27 3174/week @ 2023-08-03 3429/week @ 2023-08-10 3584/week @ 2023-08-17 4046/week @ 2023-08-24 4422/week @ 2023-08-31 3747/week @ 2023-09-07 3670/week @ 2023-09-14 3065/week @ 2023-09-21 2783/week @ 2023-09-28 3186/week @ 2023-10-05 2589/week @ 2023-10-12 3058/week @ 2023-10-19 3561/week @ 2023-10-26 2365/week @ 2023-11-02

12,126 downloads per month
Used in 37 crates (14 directly)

Apache-2.0 OR MIT

8KB
51 lines

concat-string

Travis CI AppVeyor Crates.io Docs.rs

This crate provides the concat_string! macro for efficiently concatenating string slices into owned strings. concat_string! accepts any number of arguments that implement AsRef<str> and creates a String with the appropriate capacity, without the need for format strings and their associated runtime overhead.

Example

#[macro_use(concat_string)]
extern crate concat_string;

fn main() {
    println!("{}", concat_string!("Hello", String::from(" "), "world"));
}

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps