Struct ocl_core::types::abs::PlatformId
source · #[repr(C)]pub struct PlatformId(/* private fields */);
Expand description
cl_platform_id
Implementations§
source§impl PlatformId
impl PlatformId
sourcepub unsafe fn from_raw(ptr: cl_platform_id) -> PlatformId
pub unsafe fn from_raw(ptr: cl_platform_id) -> PlatformId
Creates a new PlatformId
wrapper from a raw pointer.
sourcepub unsafe fn null() -> PlatformId
pub unsafe fn null() -> PlatformId
Returns an invalid PlatformId
used for initializing data structures
meant to be filled with valid ones.
sourcepub fn as_ptr(&self) -> cl_platform_id
pub fn as_ptr(&self) -> cl_platform_id
Returns a pointer.
sourcepub fn version(&self) -> OclCoreResult<OpenclVersion>
pub fn version(&self) -> OclCoreResult<OpenclVersion>
Returns the queried and parsed OpenCL version for this platform.
Trait Implementations§
source§impl ClPlatformIdPtr for PlatformId
impl ClPlatformIdPtr for PlatformId
fn as_ptr(&self) -> cl_platform_id
source§impl ClVersions for PlatformId
impl ClVersions for PlatformId
fn device_versions(&self) -> OclCoreResult<Vec<OpenclVersion>>
fn platform_version(&self) -> OclCoreResult<OpenclVersion>
fn verify_device_versions( &self, required_version: [u16; 2] ) -> OclCoreResult<()>
fn verify_platform_version( &self, required_version: [u16; 2] ) -> OclCoreResult<()>
source§impl Clone for PlatformId
impl Clone for PlatformId
source§fn clone(&self) -> PlatformId
fn clone(&self) -> PlatformId
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PlatformId
impl Debug for PlatformId
source§impl Hash for PlatformId
impl Hash for PlatformId
source§impl PartialEq for PlatformId
impl PartialEq for PlatformId
source§fn eq(&self, other: &PlatformId) -> bool
fn eq(&self, other: &PlatformId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PlatformId
impl Eq for PlatformId
impl Send for PlatformId
impl StructuralEq for PlatformId
impl StructuralPartialEq for PlatformId
impl Sync for PlatformId
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more