Constant sconcat::CAT [] [src]

pub const CAT: CatStart = CatStart

A term that is used to start a string concatenation.

See the crate documentation.

Examples

use sconcat::CAT;

let cat = CAT + "Hello, " + "world! " + '☺';
let s = String::from(cat);
assert_eq!(s, "Hello, world! ☺");

let mut s2 = String::from("Hello");
s2 += CAT + ',' + " world" + String::from("! ") + '☺';
assert_eq!(s2, "Hello, world! ☺");