Crate grabbag_macros [−] [src]
This is a random grab-bag of macros that didn't really seem to deserve a separate home.
If you see something you think you have a better place for, let me know!
Macros
collect! |
This macro provides a way to initialise any container for which there is a FromIterator implementation. It allows for both sequence and map syntax to be used, as well as inline type ascription for the result. |
count_exprs! |
Counts the number of comma-delimited expressions passed to it. The result is a compile-time evaluable expression, suitable for use as a static array size, or the value of a |
recurrence! |
Expands to an expression implementing the |
sequence! |
Expands to an expression implementing the |