pub struct SubDevice { /* private fields */ }Implementations§
Source§impl SubDevice
impl SubDevice
pub const fn new(id: cl_device_id) -> Self
Sourcepub const fn id(&self) -> cl_device_id
pub const fn id(&self) -> cl_device_id
Accessor for the underlying device id.
Trait Implementations§
Source§impl From<*mut c_void> for SubDevice
impl From<*mut c_void> for SubDevice
Source§fn from(id: cl_device_id) -> Self
fn from(id: cl_device_id) -> Self
Converts to this type from the input type.
Source§impl From<SubDevice> for cl_device_id
impl From<SubDevice> for cl_device_id
impl Send for SubDevice
impl Sync for SubDevice
Auto Trait Implementations§
impl Freeze for SubDevice
impl RefUnwindSafe for SubDevice
impl Unpin for SubDevice
impl UnwindSafe for SubDevice
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