extern "C" {
#[doc(hidden)] fn cv_PtrOfKNearest_get(ptr: *mut c_void) -> *mut c_void;
#[doc(hidden)] fn cv_delete_PtrOfKNearest(ptr: *mut c_void);
}
#[allow(dead_code)]
pub struct PtrOfKNearest {
pub(crate) ptr: *mut c_void
}
impl PtrOfKNearest {
#[doc(hidden)] pub fn as_raw_PtrOfKNearest(&self) -> *mut c_void {
self.ptr
}
}
impl Drop for PtrOfKNearest {
fn drop(&mut self) {
unsafe { cv_delete_PtrOfKNearest(self.ptr) };
}
}
impl core::Algorithm for PtrOfKNearest {
#[doc(hidden)]
fn as_raw_Algorithm(&self) -> *mut c_void {
unsafe { cv_PtrOfKNearest_get(self.ptr) }
}
}
impl core::StatModel for PtrOfKNearest {
#[doc(hidden)]
fn as_raw_StatModel(&self) -> *mut c_void {
unsafe { cv_PtrOfKNearest_get(self.ptr) }
}
}
impl core::KNearest for PtrOfKNearest {
#[doc(hidden)]
fn as_raw_KNearest(&self) -> *mut c_void {
unsafe { cv_PtrOfKNearest_get(self.ptr) }
}
}