[][src]Struct opencl_core::context::Context

pub struct Context { /* fields omitted */ }

Methods

impl Context[src]

pub fn build<'a, D>(obj: ClContext, devices: D) -> Context where
    D: Into<VecOrSlice<'a, Device>>, 
[src]

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.