I bet with a couple of macros it would be possible to automate what languages on Windows can somehow do magically with COM interfaces.
[1]: https://play.rust-lang.org/?version=stable&mode=debug&editio...
[1]: https://play.rust-lang.org/?version=stable&mode=debug&editio...