Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 360 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 360 Bytes

gen_macros

A set of general-purpose Rust macros.

s

Makes the string argument a String, by using String::from() (see String for details).

Example

let text: String = s!("Hello");

hashmap

Generates the code to initialize a HashMap.

Example

let days = hashmap!(0 => "Monday", 1 => "Tuesday", 2 => "Wednesday");