[−][src]Struct opencl_core::context::Context
Methods
impl Context
[src]
pub fn build<'a, D>(obj: ClContext, devices: D) -> Context where
D: Into<VecOrSlice<'a, Device>>,
[src]
D: Into<VecOrSlice<'a, Device>>,
pub fn low_level_context(&self) -> &ClContext
[src]
pub fn from_low_level_context(ll_context: &ClContext) -> Output<Context>
[src]
pub fn create<'a, D: Into<VecOrSlice<'a, Device>>>(
devices: D
) -> Output<Context>
[src]
devices: D
) -> Output<Context>
pub fn devices(&self) -> &[ClDeviceID]
[src]
pub fn reference_count(&self) -> Output<u32>
[src]
pub fn properties(&self) -> Output<Vec<ContextProperties>>
[src]
pub fn num_devices(&self) -> usize
[src]
Trait Implementations
impl Clone for Context
[src]
impl Debug for Context
[src]
impl Drop for Context
[src]
impl Eq for Context
[src]
impl PartialEq<Context> for Context
[src]
impl Send for Context
[src]
Context is thread-safe. The only mutable actions for a cl_context are its retain and release functions which are (according to OpenCL documentation), thread-safe, atomic reference counting operations. Therefore, Context is safe for Sync + Send.
impl Sync for Context
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,