[][src]Macro colmac::string

macro_rules! string {
    () => { ... };
    ( $arg:expr ) => { ... };
}

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"));