A set of general-purpose Rust macros.
Makes the string argument a String, by using String::from()
(see String
for details).
let text: String = s!("Hello");
Generates the code to initialize a HashMap
.
let days = hashmap!(0 => "Monday", 1 => "Tuesday", 2 => "Wednesday");