Skip to content

blueglyph/gen_macros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages