pub trait ContextTraitConst {
// Required method
fn as_raw_Context(&self) -> *const c_void;
// Provided methods
fn ndevices(&self) -> Result<size_t> { ... }
fn device(&self, idx: size_t) -> Result<Device> { ... }
fn ptr(&self) -> Result<*mut c_void> { ... }
fn get_opencl_context_property(
&self,
property_id: i32,
) -> Result<*mut c_void> { ... }
fn use_svm(&self) -> Result<bool> { ... }
fn empty(&self) -> Result<bool> { ... }
}
Expand description
Constant methods for core::Context