pub type MyCallback = Option; pub type MyOtherCallback = Option; #[no_mangle] pub extern "C" fn my_function(a: MyCallback, b: MyOtherCallback) {}