Macro for function traits
This crate adds a macro to derive the three function traits FnOnce, FnMut, and Fn. These traits are often implemented three times with the same signature and body (excluding the different borrow type on self), which can lead to unnecessary boilerplate - this macro hopes to overcome this.
Usage
This macro is comprised of four parts - the initial derive, and three attributes for the input and output types, and the function body.
[]
= "0.1.0"
use ;
;
Known issues
Due to the use of expect in the macro code, VSCode will highlight the macro's use as incorrect code, claiming it will always panic. This is wrong - the macro will only panic if one of the necessary fields is not provided.