3 个稳定版本
使用旧的 Rust 2015
| 1.0.2 | 2017年4月29日 | 
|---|---|
| 1.0.1 | 2017年4月28日 | 
#2616 在 Rust 模式 中
3KB
lazy_cat 
Rust 中字符串和其他对象的惰性连接。
示例
#[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());
}