Struct libffi::raw::ffi_closure
source · pub struct ffi_closure {
pub tramp: ffi_trampoline,
pub cif: *mut ffi_cif,
pub fun: Option<unsafe extern "C" fn(_: *mut ffi_cif, _: *mut c_void, _: *mut *mut c_void, _: *mut c_void)>,
pub user_data: *mut c_void,
}
Fields§
§tramp: ffi_trampoline
§cif: *mut ffi_cif
§fun: Option<unsafe extern "C" fn(_: *mut ffi_cif, _: *mut c_void, _: *mut *mut c_void, _: *mut c_void)>
§user_data: *mut c_void
Trait Implementations§
source§impl Clone for ffi_closure
impl Clone for ffi_closure
source§fn clone(&self) -> ffi_closure
fn clone(&self) -> ffi_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 moresource§impl Debug for ffi_closure
impl Debug for ffi_closure
Implements Debug manually since sometimes FFI_TRAMPOLINE_SIZE is too large
source§impl Default for ffi_closure
impl Default for ffi_closure
source§fn default() -> ffi_closure
fn default() -> ffi_closure
Returns the “default value” for a type. Read more