help wanted
Description
i.e. function parameters with the type fn(...) -> ....
#[cxx::bridge]
mod ffi {
extern "Rust" {
fn f(arg: u8, callback: fn(u8));
}
}
fn f(arg: u8, callback: fn(u8)) {
callback(256 - arg);
}
i.e. function parameters with the type fn(...) -> ....
#[cxx::bridge]
mod ffi {
extern "Rust" {
fn f(arg: u8, callback: fn(u8));
}
}
fn f(arg: u8, callback: fn(u8)) {
callback(256 - arg);
}