#[repr(C)]pub struct BNObjectDestructionCallbacks {
pub context: *mut c_void,
pub destructBinaryView: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView)>,
pub destructFileMetadata: Option<unsafe extern "C" fn(ctxt: *mut c_void, file: *mut BNFileMetadata)>,
pub destructFunction: Option<unsafe extern "C" fn(ctxt: *mut c_void, func: *mut BNFunction)>,
}
Fields§
§context: *mut c_void
§destructBinaryView: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView)>
The provided pointers have a reference count of zero. Do not add additional references, doing so can lead to a double free. These are provided only for freeing additional state related to the objects passed.
destructFileMetadata: Option<unsafe extern "C" fn(ctxt: *mut c_void, file: *mut BNFileMetadata)>
§destructFunction: Option<unsafe extern "C" fn(ctxt: *mut c_void, func: *mut BNFunction)>
Trait Implementations§
source§impl Clone for BNObjectDestructionCallbacks
impl Clone for BNObjectDestructionCallbacks
source§fn clone(&self) -> BNObjectDestructionCallbacks
fn clone(&self) -> BNObjectDestructionCallbacks
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 BNObjectDestructionCallbacks
impl Debug for BNObjectDestructionCallbacks
impl Copy for BNObjectDestructionCallbacks
Auto Trait Implementations§
impl Freeze for BNObjectDestructionCallbacks
impl RefUnwindSafe for BNObjectDestructionCallbacks
impl !Send for BNObjectDestructionCallbacks
impl !Sync for BNObjectDestructionCallbacks
impl Unpin for BNObjectDestructionCallbacks
impl UnwindSafe for BNObjectDestructionCallbacks
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)