Function Overloading
This is a Rust library that adds function overloading through Rust macros. It supports normal function syntax but does not currently support advanced features like async, generics, or lifetimes.
Usage
Define overloaded functions using the def!
macro:
def!
You can use the overloaded function by calling it as a function with the args wrapped in a tuple:
Future Plans
- Additional Features: Adding support for generics, lifetimes, async functions, etc.
- Proc Macros: Using proc macros to make
-> ()
implicit.- turns out I didn't need a proc macro for this
- Add to crates.io