[][src]Struct dynamic_ocl::device::DeviceType

#[repr(transparent)]
pub struct DeviceType(_);

A bitfield representing OpenCL device types

Methods

impl DeviceType[src]

pub const ALL: DeviceType[src]

pub const CPU: DeviceType[src]

pub const GPU: DeviceType[src]

pub const DEFAULT: DeviceType[src]

pub const ACCELERATOR: DeviceType[src]

pub const CUSTOM: DeviceType[src]

pub const unsafe fn new(value: cl_device_type) -> Self[src]

Create a new wrapped bitfield from the given raw bitfield value.

Safety

This function can be used to create bitfields representing non-existent flags. You must ensure that the resulting bitfield is legal anywhere it's used.

pub const fn raw(self) -> cl_device_type[src]

Unwrap this bitfield into the underlying value

pub const fn contains(self, other: Self) -> bool[src]

Check whether this bitfield is equal to or a superset of a given bitfield

impl DeviceType[src]

pub const EMPTY: DeviceType[src]

A device type bitfield with no fields set

Trait Implementations

impl BitAnd<DeviceType> for DeviceType[src]

type Output = Self

The resulting type after applying the & operator.

impl BitAndAssign<DeviceType> for DeviceType[src]

impl BitOr<DeviceType> for DeviceType[src]

type Output = Self

The resulting type after applying the | operator.

impl BitOrAssign<DeviceType> for DeviceType[src]

impl BitXor<DeviceType> for DeviceType[src]

type Output = Self

The resulting type after applying the ^ operator.

impl BitXorAssign<DeviceType> for DeviceType[src]

impl Clone for DeviceType[src]

impl Copy for DeviceType[src]

impl Debug for DeviceType[src]

impl Eq for DeviceType[src]

impl FromOclInfo for DeviceType[src]

impl Hash for DeviceType[src]

impl PartialEq<DeviceType> for DeviceType[src]

impl StructuralEq for DeviceType[src]

impl StructuralPartialEq for DeviceType[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> Same<T> for T

type Output = T

Should always be Self

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.