To be clear to all those responding with 'just use a function pointer': a function pointer specifically *does not* do what I'm looking for. Instead, I'm looking for an API like this: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=c5f9977fba5c86b396014023be1b434a
@jsbarretto it's going to be zero-sized only in generic structs, but these generally are not fit for use in FFI, so I don't see how it would be useful for FFI in particular.