pub struct CLIntDevice(pub *mut c_void);Tuple Fields§
§0: *mut c_voidImplementations§
Source§impl CLIntDevice
impl CLIntDevice
pub fn get_name(self) -> Result<String, Box<dyn Error + Sync + Send>>
pub fn get_version(self) -> Result<String, Box<dyn Error + Sync + Send>>
pub fn get_global_mem(self) -> Result<u64, Box<dyn Error + Sync + Send>>
pub fn get_max_mem_alloc(self) -> Result<u64, Box<dyn Error + Sync + Send>>
pub fn unified_mem(self) -> Result<bool, Box<dyn Error + Sync + Send>>
Trait Implementations§
Source§impl Clone for CLIntDevice
impl Clone for CLIntDevice
Source§fn clone(&self) -> CLIntDevice
fn clone(&self) -> CLIntDevice
Returns a duplicate 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 CLIntDevice
impl Debug for CLIntDevice
Source§impl Hash for CLIntDevice
impl Hash for CLIntDevice
impl Copy for CLIntDevice
Auto Trait Implementations§
impl Freeze for CLIntDevice
impl RefUnwindSafe for CLIntDevice
impl !Send for CLIntDevice
impl !Sync for CLIntDevice
impl Unpin for CLIntDevice
impl UnwindSafe for CLIntDevice
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