Useful Rust Macros

#[rustfmt::skip] // below won't be formatted by rustfmt

println! // Variables can be specified (both ways work)

stringify!(1+1) // "1+1"  &'static str

column! // "Expands to the column number at which it was invoked."

line! // "Expands to the line number on which it was invoked."

file! // "Expands to the file name in which it was invoked."

module_path! // "Expands to a string that represents the current module path."

include_bytes! // "Includes a file as a reference to a byte array."

json! // serde_json::json


Lazy Static lazy_static!

lazy_static = "0.2.8"
If you found it valuable, please join to the supporters at: Support