AllocatorImpl

Trait AllocatorImpl 

Source
pub unsafe trait AllocatorImpl: GstObjectImpl + ObjectSubclass<Type: IsA<Allocator>> {
    // Provided methods
    unsafe fn alloc(
        &self,
        size: usize,
        params: &AllocationParams,
    ) -> *mut GstMemory { ... }
    unsafe fn free(&self, memory: *mut GstMemory) { ... }
}

Provided Methods§

Source

unsafe fn alloc(&self, size: usize, params: &AllocationParams) -> *mut GstMemory

Source

unsafe fn free(&self, memory: *mut GstMemory)

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.

Implementors§