#[repr(C)]pub struct ffi_closure {
pub tramp: ffi_trampoline,
pub cif: *mut ffi_cif,
pub fun: Option<unsafe extern "C" fn(arg1: *mut ffi_cif, arg2: *mut c_void, arg3: *mut *mut c_void, arg4: *mut c_void)>,
pub user_data: *mut c_void,
}
Fields§
§tramp: ffi_trampoline
§cif: *mut ffi_cif
§fun: Option<unsafe extern "C" fn(arg1: *mut ffi_cif, arg2: *mut c_void, arg3: *mut *mut c_void, arg4: *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
Implements Debug manually since sometimes FFI_TRAMPOLINE_SIZE is too large
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
impl Copy for ffi_closure
Auto Trait Implementations§
impl Freeze for ffi_closure
impl RefUnwindSafe for ffi_closure
impl !Send for ffi_closure
impl !Sync for ffi_closure
impl Unpin for ffi_closure
impl UnwindSafe for ffi_closure
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more