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.
Trait Implementations
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 Debug for DeviceId
[src]
impl Copy for DeviceId
[src]
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