bare_dyn!() { /* proc-macro */ }Expand description
Shorthand for a BareFn* type taking a boxed closure.
Essentially,
ⓘ
type MyBareFnMut = bare_dyn!("C", FnMut(&u32) -> u32 + Send);becomes
ⓘ
type MyBareFnMut = BareFnMut<
unsafe extern "C" fn(&u32) -> u32,
Box<dyn FnMut(&u32) -> u32 + Send>
>;If desired, the JIT allocator used by the BareFn* closure wrapper can also be specified
by passing it as a third parameter.