extern "C" {
#[doc(hidden)] fn cv_PtrOfFormatter_get(ptr: *mut c_void) -> *mut c_void;
#[doc(hidden)] fn cv_delete_PtrOfFormatter(ptr: *mut c_void);
}
#[allow(dead_code)]
pub struct PtrOfFormatter {
pub(crate) ptr: *mut c_void
}
impl PtrOfFormatter {
#[doc(hidden)] pub fn as_raw_PtrOfFormatter(&self) -> *mut c_void {
self.ptr
}
}
impl Drop for PtrOfFormatter {
fn drop(&mut self) {
unsafe { cv_delete_PtrOfFormatter(self.ptr) };
}
}
impl core::Formatter for PtrOfFormatter {
#[doc(hidden)]
fn as_raw_Formatter(&self) -> *mut c_void {
unsafe { cv_PtrOfFormatter_get(self.ptr) }
}
}