-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(macros): Allow function/constructor callback to get generic para…
…meters. This patch allows `#[function_callback]` and `#[constructor_callback]` to be defined where generic parameters. This patch adds a test to ensure it works correctly. Rust will monomorphize the functions automatically, the macro doesn't have to handle that.
- Loading branch information
1 parent
e04beed
commit 9791f15
Showing
2 changed files
with
86 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters