fn_overloads
A simple proc macro that utilizes the nightly features fn_traits and unboxed_closures to mimic function overloads.
This allows you to have varying function arguments and return types for the same function.
Please do not use this.
Example usage
use fn_overloads;
fn_overloads!
Generics
This macro supports generics with some limitations, all generics must be used in function arguments.
use ;
fn_overloads!
Async
This macro supports async, but requires either alloc or std. The std feature flag is turned on by default.
By default, the macro will desugar an async function to Pin<Box<dyn Future<Output = T>>>, but with the impl_futures flag turned on it will desugar it to impl Future<Output = T> which requires the impl_trait_in_assoc_type nightly feature.
use ;
fn_overloads!