orderless!
orderless generates macros for you that allow you to use orderless/named functions in Rust.
// Compiles to add(2, 2) for no runtime performance hit!
add!; // 4
Features
- Attribute macro.
- Procedural macro.
- Paths to functions (functions from crates and
impl). - Default argument values.
- Identifiers.
- Expressions.
-
constandstaticvariables. - Optionally don't provide a default value.
- Shortcut identical name and value to just the name.
a = atoa. - Attribute macro
impl_orderlessformake_orderlessinimplblocks.
Docs
Documentation is provided on docs.rs.