Struct libffi_sys::ffi_raw_closure
source · #[repr(C)]pub struct ffi_raw_closure {
pub tramp: [c_char; 24],
pub cif: *mut ffi_cif,
pub translate_args: Option<unsafe extern "C" fn(arg1: *mut ffi_cif, arg2: *mut c_void, arg3: *mut *mut c_void, arg4: *mut c_void)>,
pub this_closure: *mut c_void,
pub fun: Option<unsafe extern "C" fn(arg1: *mut ffi_cif, arg2: *mut c_void, arg3: *mut ffi_raw, arg4: *mut c_void)>,
pub user_data: *mut c_void,
}
Fields§
§tramp: [c_char; 24]
§cif: *mut ffi_cif
§translate_args: Option<unsafe extern "C" fn(arg1: *mut ffi_cif, arg2: *mut c_void, arg3: *mut *mut c_void, arg4: *mut c_void)>
§this_closure: *mut c_void
§fun: Option<unsafe extern "C" fn(arg1: *mut ffi_cif, arg2: *mut c_void, arg3: *mut ffi_raw, arg4: *mut c_void)>
§user_data: *mut c_void
Trait Implementations§
source§impl Clone for ffi_raw_closure
impl Clone for ffi_raw_closure
source§fn clone(&self) -> ffi_raw_closure
fn clone(&self) -> ffi_raw_closure
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more