Created
August 22, 2023 19:41
-
-
Save ClarkeRemy/b845e12ca1e86bca26efcd7ee0a3aaa7 to your computer and use it in GitHub Desktop.
Call Erased (cursed)
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
fn call_later<T:Fn(&G),G>(_ : &T) -> unsafe fn(*const(), *const()) | |
{ | |
|p : *const (), g : *const()| | |
{ unsafe { (&*(p as *const T))(&*(g as *const G)) } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment