Struct ocl_core::types::abs::DeviceId
[−]
[src]
pub struct DeviceId(_);
cl_device_id
Methods
impl DeviceId
[src]
unsafe fn from_fresh_ptr(ptr: cl_device_id) -> DeviceId
Only call this when passing a newly created pointer directly from
clCreate...
. Do not use this to clone or copy.
unsafe fn from_copied_ptr(ptr: cl_device_id) -> DeviceId
Only call this when passing a copied pointer such as from an
clGet*****Info
function.
unsafe fn null() -> DeviceId
unsafe fn as_ptr(&self) -> cl_device_id
Returns a pointer.
fn version(&self) -> OclResult<OpenclVersion>
Returns the looked up and parsed OpenCL version for this device.
Trait Implementations
impl Clone for DeviceId
[src]
fn clone(&self) -> DeviceId
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for DeviceId
[src]
impl Debug for DeviceId
[src]
impl Hash for DeviceId
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl ClDeviceIdPtr for DeviceId
[src]
unsafe fn as_ptr(&self) -> cl_device_id
impl<'a> ClDeviceIdPtr for &'a DeviceId
[src]
unsafe fn as_ptr(&self) -> cl_device_id
impl Sync for DeviceId
[src]
impl Send for DeviceId
[src]
impl PartialEq<DeviceId> for DeviceId
[src]
fn eq(&self, other: &DeviceId) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.