[][src]Struct opencl_core::device::Device

pub struct Device { /* fields omitted */ }

Methods

impl Device[src]

pub fn new(device_id: ClDeviceID) -> Device[src]

impl Device[src]

pub fn low_level_device(&self) -> &ClDeviceID[src]

pub fn list_devices_by_type(
    platform: &Platform,
    device_type: DeviceType
) -> Output<Vec<Device>>
[src]

pub fn list_default_devices(platform: &Platform) -> Output<Vec<Device>>[src]

pub fn list_all_devices(platform: &Platform) -> Output<Vec<Device>>[src]

pub fn list_cpu_devices(platform: &Platform) -> Output<Vec<Device>>[src]

pub fn list_gpu_devices(platform: &Platform) -> Output<Vec<Device>>[src]

pub fn list_accelerator_devices(platform: &Platform) -> Output<Vec<Device>>[src]

pub fn list_custom_devices(platform: &Platform) -> Output<Vec<Device>>[src]

Trait Implementations

impl Clone for Device[src]

impl Debug for Device[src]

impl DevicePtr for Device[src]

impl Drop for Device[src]

impl Eq for Device[src]

impl PartialEq<Device> for Device[src]

impl Send for Device[src]

impl Sync for Device[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.