pub trait ObjectDestructor: 'static + Sync + Sized {
    // Provided methods
    fn destruct_view(&self, _view: &BinaryView) { ... }
    fn destruct_file_metadata(&self, _metadata: &FileMetadata) { ... }
    fn destruct_function(&self, _func: &Function) { ... }
    unsafe extern "C" fn cb_destruct_binary_view(
        ctxt: *mut c_void,
        view: *mut BNBinaryView
    ) { ... }
    unsafe extern "C" fn cb_destruct_file_metadata(
        ctxt: *mut c_void,
        file: *mut BNFileMetadata
    ) { ... }
    unsafe extern "C" fn cb_destruct_function(
        ctxt: *mut c_void,
        func: *mut BNFunction
    ) { ... }
    unsafe fn as_callbacks(&'static mut self) -> BNObjectDestructionCallbacks { ... }
    fn register(&'static mut self) { ... }
    fn unregister(&'static mut self) { ... }
}
Expand description

The trait required for receiving core object destruction callbacks.

Provided Methods§

source

fn destruct_view(&self, _view: &BinaryView)

source

fn destruct_file_metadata(&self, _metadata: &FileMetadata)

source

fn destruct_function(&self, _func: &Function)

source

unsafe extern "C" fn cb_destruct_binary_view( ctxt: *mut c_void, view: *mut BNBinaryView )

source

unsafe extern "C" fn cb_destruct_file_metadata( ctxt: *mut c_void, file: *mut BNFileMetadata )

source

unsafe extern "C" fn cb_destruct_function( ctxt: *mut c_void, func: *mut BNFunction )

source

unsafe fn as_callbacks(&'static mut self) -> BNObjectDestructionCallbacks

source

fn register(&'static mut self)

source

fn unregister(&'static mut self)

Object Safety§

This trait is not object safe.

Implementors§