macro_rules! string {
() => { ... };
( $arg:expr ) => { ... };
}Expand description
Sugar for String::new and String::from.
ยงExamples
#[macro_use] extern crate colmac;
// create an empty string
assert_eq!(String::new(), string!());
// syntactically identical
assert_eq!(String::from("abc"), string!("abc"));