3 stable releases
Uses old Rust 2015
1.0.2 | Apr 29, 2017 |
---|---|
1.0.1 | Apr 28, 2017 |
#2579 in Rust patterns
3KB
lazy_cat
Lazy concatenation of strings and other things in Rust.
Example:
#[macro_use]
extern crate lazy_cat;
fn main() {
assert_eq!("Hello world!", lazy_cat!("Hello", " world!").to_string());
assert_eq!("Hello John Doe!", lazy_cat!("Hello ", "John ", "Doe!").to_string());
assert_eq!("123Hello", lazy_cat!(1, 2, 3, "Hello").to_string());
}