Struct ocl_core::types::abs::PlatformId
[−]
[src]
#[repr(C)]pub struct PlatformId(_);
cl_platform_id
Methods
impl PlatformId
[src]
unsafe fn from_raw(ptr: cl_platform_id) -> PlatformId
Creates a new PlatformId
wrapper from a raw pointer.
unsafe fn null() -> PlatformId
Returns an invalid PlatformId
used for initializing data structures
meant to be filled with valid ones.
fn as_ptr(&self) -> cl_platform_id
Returns a pointer.
fn version(&self) -> OclResult<OpenclVersion>
Returns the queried 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 given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Eq for PlatformId
[src]
impl ClPlatformIdPtr for PlatformId
[src]
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) -> bool
1.0.0
This method tests for !=
.