extern "C" {
#[doc(hidden)] fn cv_PtrOfFunction_get(ptr: *mut c_void) -> *mut c_void;
#[doc(hidden)] fn cv_delete_PtrOfFunction(ptr: *mut c_void);
}
#[allow(dead_code)]
pub struct PtrOfFunction {
pub(crate) ptr: *mut c_void
}
impl PtrOfFunction {
#[doc(hidden)] pub fn as_raw_PtrOfFunction(&self) -> *mut c_void {
self.ptr
}
}
impl Drop for PtrOfFunction {
fn drop(&mut self) {
unsafe { cv_delete_PtrOfFunction(self.ptr) };
}
}
impl core::MinProblemSolver_Function for PtrOfFunction {
#[doc(hidden)]
fn as_raw_MinProblemSolver_Function(&self) -> *mut c_void {
unsafe { cv_PtrOfFunction_get(self.ptr) }
}
}