pub trait GpuMat_AllocatorTrait: GpuMat_AllocatorTraitConst {
// Required method
fn as_raw_mut_GpuMat_Allocator(&mut self) -> *mut c_void;
// Provided methods
fn allocate(
&mut self,
mat: &mut impl GpuMatTrait,
rows: i32,
cols: i32,
elem_size: size_t,
) -> Result<bool> { ... }
fn free(&mut self, mat: &mut impl GpuMatTrait) -> Result<()> { ... }
}
Expand description
Mutable methods for core::GpuMat_Allocator
Required Methods§
fn as_raw_mut_GpuMat_Allocator(&mut self) -> *mut c_void
Provided Methods§
fn allocate( &mut self, mat: &mut impl GpuMatTrait, rows: i32, cols: i32, elem_size: size_t, ) -> Result<bool>
fn free(&mut self, mat: &mut impl GpuMatTrait) -> Result<()>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.