Trait ContextPtr

Source
pub unsafe trait ContextPtr: Sized {
    // Required method
    unsafe fn context_ptr(&self) -> cl_context;

    // Provided methods
    unsafe fn info<T: Copy>(&self, flag: ContextInfo) -> Output<ClPointer<T>> { ... }
    unsafe fn reference_count(&self) -> Output<u32> { ... }
    unsafe fn devices(&self) -> Output<Vec<ClDeviceID>> { ... }
    unsafe fn properties(&self) -> Output<Vec<ContextProperties>> { ... }
    unsafe fn num_devices(&self) -> Output<u32> { ... }
}

Required Methods§

Source

unsafe fn context_ptr(&self) -> cl_context

Provided Methods§

Source

unsafe fn info<T: Copy>(&self, flag: ContextInfo) -> Output<ClPointer<T>>

Source

unsafe fn reference_count(&self) -> Output<u32>

Source

unsafe fn devices(&self) -> Output<Vec<ClDeviceID>>

Source

unsafe fn properties(&self) -> Output<Vec<ContextProperties>>

Source

unsafe fn num_devices(&self) -> Output<u32>

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§