concat-string

Crates.ioconcat-string
lib.rsconcat-string
version1.0.1
sourcesrc
created_at2017-09-28 05:58:14.701724
updated_at2018-07-01 09:25:36.652367
descriptionProvides macros for concatenating string slices into owned strings.
homepage
repositoryhttps://github.com/FaultyRAM/concat-string
max_upload_size
id33740
size20,563
(FaultyRAM)

documentation

README

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.

Commit count: 12

cargo fmt