Function drop_rust_refcell_box

Source
#[unsafe(no_mangle)]
pub extern "C" fn drop_rust_refcell_box(user_data_ptr: *mut c_void)
Expand description

Function called by C++ (WxdRustClientData destructor) to drop the Rust Box<RefCell>.

§Safety

The caller (C++) must ensure user_data_ptr is a valid pointer obtained from Box::into_raw(Box::new(RefCell::new(data))) and that it hasn’t been dropped or invalidated since.