orderless 0.1.2

Generates macros for you that allow you to use orderless/named functions in Rust.
Documentation

orderless!

orderless generates macros for you that allow you to use orderless/named functions in Rust.

#[make_orderless(defs(a = 2, b))]
fn add(a: usize, b: usize) -> usize {
	a + b
}

// Compiles to add(2, 2) for no runtime performance hit!
add!(b = 2); // 4

Features

  • Attribute macro.
  • Procedural macro.
  • Paths to functions (functions from crates and impl).
  • Default argument values.
    • Identifiers.
    • Expressions.
    • const and static variables.
    • Optionally don't provide a default value.
  • Shortcut identical name and value to just the name. a = a to a.
  • Attribute macro impl_orderless for make_orderless in impl blocks.

Docs

Documentation is provided on docs.rs.