Struct ocl_core::types::abs::PlatformId
[−]
[src]
pub struct PlatformId(_);
cl_platform_id
Methods
impl PlatformId[src]
unsafe fn from_fresh_ptr(ptr: cl_platform_id) -> PlatformId
Only call this when passing a newly created pointer directly from
clCreate.... Do not use this to clone or copy.
unsafe fn null() -> PlatformId
unsafe fn as_ptr(&self) -> cl_platform_id
Returns a pointer.
fn version(&self) -> OclResult<OpenclVersion>
Returns the looked up and parsed OpenCL version for this platform.
Trait Implementations
impl Clone for PlatformId[src]
fn clone(&self) -> PlatformId
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 PlatformId[src]
impl Debug for PlatformId[src]
impl Hash for PlatformId[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: Hasher1.3.0
Feeds a slice of this type into the state provided.
impl ClPlatformIdPtr for PlatformId[src]
unsafe fn as_ptr(&self) -> cl_platform_id
impl<'a> ClPlatformIdPtr for &'a PlatformId[src]
unsafe fn as_ptr(&self) -> cl_platform_id
impl Sync for PlatformId[src]
impl Send for PlatformId[src]
impl PartialEq<PlatformId> for PlatformId[src]
fn eq(&self, other: &PlatformId) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.