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§
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>
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.