Crates.io | concat-string |
lib.rs | concat-string |
version | 1.0.1 |
source | src |
created_at | 2017-09-28 05:58:14.701724 |
updated_at | 2018-07-01 09:25:36.652367 |
description | Provides macros for concatenating string slices into owned strings. |
homepage | |
repository | https://github.com/FaultyRAM/concat-string |
max_upload_size | |
id | 33740 |
size | 20,563 |
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.
#[macro_use(concat_string)]
extern crate concat_string;
fn main() {
println!("{}", concat_string!("Hello", String::from(" "), "world"));
}
Licensed under either of
at your option.
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.